Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Drawback of eval {---}if ($@){---}, when using many times?

by kcott (Archbishop)
on Oct 29, 2015 at 16:33 UTC ( [id://1146387]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    
    ...
        warn "TRAPPED: $@" if $@;
        last unless @ids;
    }
    
  2. or download this
    $ pm_1146365_multi_eval.pl
    TRAPPED: 3 at ./pm_1146365_multi_eval.pl line 12.
    TRAPPED: 2 at ./pm_1146365_multi_eval.pl line 12.
    TRAPPED: 1 at ./pm_1146365_multi_eval.pl line 12.
    TRAPPED: Can't open 'pm_1146365_nonexistent_file' for reading: 'No suc
    +h file or directory' at ./pm_1146365_multi_eval.pl line 13
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-23 19:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found