Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: RFC: Defined-Or for before Perl 5.10

by afoken (Chancellor)
on Nov 02, 2010 at 17:06 UTC ( [id://869047]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    my $v=failing_func(1) // warn "oops: $!"; # should give error 1
    $v=defined_or_warn(failing_func(2),"oops: $!"); # should give error 2
    $v=defined_or_warn_reverse("oops: $!",failing_func(3)); # should give 
    +error 3
    
  2. or download this
    error 1 => Operation not permitted
    error 2 => No such file or directory
    ...
    oops: Operation not permitted at foo.pl line 31.
    oops: No such file or directory at foo.pl line 17.
    oops: No such file or directory at foo.pl line 24.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-03-19 11:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found