Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: how i capture a script error to a file ?

by shmem (Chancellor)
on Apr 27, 2017 at 13:16 UTC ( [id://1189038]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    local $SIG{__DIE__} = sub {
        open my $fh, '>>', 'log.err'
    ...
    1 / 0;
    __END__
    Illegal division by zero at foo.pl line 8.
    
  2. or download this
    @_: |fubar! at foo.pl line 7.
    |
    ...
    |
    $@: |fubar! at foo.pl line 7.
    |
    
  3. or download this
        return if $^S; # we are within an eval block
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1189038]
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-25 07:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found