Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Take reference and then dereference die() and warn()

by Beechbone (Friar)
on Nov 12, 2013 at 13:56 UTC ( [id://1062196]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $SIG{'__WARN__'} = sub { die @_ } if $die_on_error;
    warn "foooooo";
    
  2. or download this
    $SIG{'__WARN__'} = sub { die @{$_[0]} if ref $_[0] eq 'ARRAY'; warn @_
    +; } if $die_on_error;
    warn "foooooo"; # never dies
    warn ["foooooo"]; # sometimes dies
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-23 22:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found