in reply to (Guildenstern) Re: "Obviously, You Will Need a Java Course..."
in thread "Obviously, You Will Need a Java Course..."
I'm not sure if Perl supports error handling in the same manner (try and catch, or similar), but I'm sure somebody here can clue me in.
darobin mentions this below - use eval BLOCK with die to catch and throw exceptions:
Peace,eval { # code that might die }; if ($@) { # $@ contains your exception }
Update: merlyn is right, of course - forgot the ";". Curse my flying fingers! :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: (Guildenstern) Re: "Obviously, You Will Need a Java Course..."
by merlyn (Sage) on Apr 04, 2001 at 20:38 UTC |