Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Explain a tell function in perl?

964


Explain grooving and shortening of arrays?

1088


What is the use of now constructor in perl?

972


What is “grep” function in perl?

995


What is a perl references?

928


Explain tk?

992


How the interpreter is used in Perl?

951


Why aren't Perl's patterns regular expressions?

1168


How to check the status of airplane mode (enable/disable) in perl for Android mobile?

3086


Explain strftime() function in perl?

940


How can I display all array element in which each element will display on next line in perl ?

932


What is goto statement in perl?

940


Which of these is a difference between Perl and C++ ?

1046


How to remove a directory in perl?

992


How to convert arrays into a string in perl?

947