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.eval { # code that might die } if ($@) { # $@ contains your exception }
-- Randal L. Schwartz, Perl hacker
In reply to Re: Re: (Guildenstern) Re: "Obviously, You Will Need a Java Course..."
by merlyn
in thread "Obviously, You Will Need a Java Course..."
by azatoth
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |