Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Script help

by dash2 (Hermit)
on Jun 22, 2003 at 17:49 UTC ( #267969=note: print w/ replies, xml ) Need Help??


in reply to Script help

try {...} catch{ ... } hasn't been implemented as a default construct in perl, although it (like everything else) is available as a module - and will be in perl 6 under some name or other.

(Unless I am behind the times and it's one of the very latest features, or exported by default from one of your modules.)

Instead, use eval { #try some code }; if ($@) { # catch the error }. There's no support for finally{}.

Oh, and use strict;.
A massive flamewar beneath your chosen depth has not been shown here


Comment on Re: Script help
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2015-07-04 23:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls