Blog
Developers
Careers
Support
Contact
Gossamer Threads
Solutions
Results
About
Mailing Lists
Resource Centre
Forum
Tools
Home
Who's Online
Tags
Favourites
Login
Register
Forum Search
(
Advanced Search
)
This forum
This category
All forums
for
Home
:
General
:
Perl Programming
:
Exception Handling!!
Previous Thread
Next Thread
Print Thread
View Threaded
May 8, 1999, 6:43 AM
Manjari
New User
(1 post)
May 8, 1999, 6:43 AM
Post #1 of 2
Views: 505
Shortcut
Exception Handling!!
Hi Everybody,
I just wanted to know whether Perl support any kind of exception handling?
------------------
Manjari Gangwar
May 10, 1999, 4:29 PM
Alex
Administrator
(9387 posts)
May 10, 1999, 4:29 PM
Post #2 of 2
Views: 452
Shortcut
Re: Exception Handling!!
In reply to
Yes, you can do it using eval():
eval {
print 3 / 0;
};
if ($@) {
print "Uh oh, fatal error: $@";
}
Hope that helps,
Alex
Previous Thread
Next Thread
Print Thread
View Threaded