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

What are the functions that can be performed using cgi program?

975


What are prefix dereferencer? List them.

1024


How do I sort a hash by the hash key?

966


Explain returning values from subroutines?

999


What are the features of perl language?

1148


How we can navigate the xml documents?

1066


What is the use of -w, -t and strict in Perl?

1050


Explain the meaning of closure in perl.

1091


Explain splicing of arrays?

1000


what are the strategies followed for multiple form interaction in cgi programs?

990


How to get help for perl?

1041


Explain goto expr?

923


Write a program to decode the data in the form using cgi programming

1098


Which guidelines by Perl modules must be followed?

1078


What is confess function in perl?

997