Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Best way to replace 'die' with 'warn'

by dsheroh (Monsignor)
on Dec 06, 2009 at 10:22 UTC ( [id://811317]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    eval {
      weather_subroutine();
    } or do {
      warn $@;
    };  # <-- Note trailing semicolon; it *does* matter
    
  2. or download this
    eval {
      weather_subroutine();
    }
    warn $@ if $@;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://811317]
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-25 23:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found