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