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

Re: Carp::Always comeback [tests with autodie]

by kcott (Archbishop)
on Aug 13, 2018 at 10:10 UTC ( [id://1220285]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ uname -a
    Darwin ganymede.local 16.6.0 Darwin Kernel Version 16.6.0: Fri Apr 14 
    +16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64 x86_64 i386 M
    +acPro5,1 Darwin
    ...
    alias perle='perl -Mstrict -Mwarnings -Mautodie=:all -E'
    $ ls not_a_file
    ls: cannot access 'not_a_file': No such file or directory
    
  2. or download this
    $ perle 'use Carp::Always; die "arghh"'
    arghh at -e line 1.
    ...
    $ perl -Mstrict -Mwarnings -E 'sub f { open my $fh, "<", "not_a_file" 
    +}; sub g { f }; g;'
    $ perl -E 'sub f { open my $fh, "<", "not_a_file" }; sub g { f }; g;'
    $
    
  3. or download this
    $ alias perle
    alias perle='perl -Mstrict -Mwarnings -Mautodie=:all -MCarp::Always -E
    +'
    
  4. or download this
    $ perle 'sub f { open my $fh, "<", "not_a_file" }; sub g { f }; g;'
    Can't open 'not_a_file' for reading: 'No such file or directory' at -e
    + line 1
        main::open(GLOB(0x7fb28e80f750), "<", "not_a_file") called at -e l
    +ine 1
        main::f() called at -e line 1
        main::g() called at -e line 1
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2024-04-19 07:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found