Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Bug in eval in pre-5.14

by choroba (Cardinal)
on Jan 23, 2016 at 16:45 UTC ( [id://1153468]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    eval {
        # code that could die
    };
    if ($@) { # Poor man's catch!
    
  2. or download this
    eval {
        # code that could die;
    1 } or do {
    
  3. or download this
    #!/usr/bin/perl
    use warnings;
    ...
    } catch {
        warn "Caught with Try::Tiny: $_";
    };
    
  4. or download this
    5.020001
    Caught with $@: Exception! at ./eval.pl line 25.
    Caught with or: Exception! at ./eval.pl line 34.
    Caught with Try::Tiny: Exception! at ./eval.pl line 44.
    
  5. or download this
    5.012005
    Caught with or:  at eval.pl line 36.
    Caught with Try::Tiny:  at eval.pl line 46.
    
  6. or download this
    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord
    }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://1153468]
Approved by Old_Gray_Bear
Front-paged by Old_Gray_Bear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-25 21:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found