Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: (Guildenstern) Re: "Obviously, You Will Need a Java Course..."

by merlyn (Sage)
on Apr 04, 2001 at 20:38 UTC ( [id://69729]=note: print w/replies, xml ) Need Help??


in reply to Re: (Guildenstern) Re: "Obviously, You Will Need a Java Course..."
in thread "Obviously, You Will Need a Java Course..."

eval { # code that might die } if ($@) { # $@ contains your exception }
Don't forget the semicolon after the eval {}. That kind of eval is an expression, not a statement, so it needs a semicolon to become a statement.

-- Randal L. Schwartz, Perl hacker

  • Comment on Re: Re: (Guildenstern) Re: "Obviously, You Will Need a Java Course..."
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://69729]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-23 18:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found