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
What are the functions that can be performed using cgi program?
What are prefix dereferencer? List them.
How do I sort a hash by the hash key?
Explain returning values from subroutines?
What are the features of perl language?
How we can navigate the xml documents?
What is the use of -w, -t and strict in Perl?
Explain the meaning of closure in perl.
Explain splicing of arrays?
what are the strategies followed for multiple form interaction in cgi programs?
How to get help for perl?
Explain goto expr?
Write a program to decode the data in the form using cgi programming
Which guidelines by Perl modules must be followed?
What is confess function in perl?