How would you trap error occurred in the perl program/file?
Answer Posted / perly_whirly
Put your code inside of an eval. If an error occurs, the $@ variable will contain
the error. You can also raise an error by using die inside of an eval.
Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
When would `local $_' in a function ruin your day?
What does cgi program store?
When do you use perl programming?
What is the difference between perl list and perl array?
What is the use of -n and -p options?
how to get back up from private character editor which is saved in the format of .udf
How does a “grep” function perform?
What is grep used for in perl?
Explain string comparison operators in perl.
Explain '->' in perl?
How do find the length of an array?
Explain which feature of PERL provides code reusability?
What are the different instances used in cgi overhead?
What does next statement do in perl?
Explain what is perl language?