Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by talexb (Chancellor)
on Apr 27, 2017 at 14:02 UTC ( [id://1189044]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #  Somewhere early on, so that it can be used everywhere.
    my $error_log;
    ...
    #  Later, wherever it's necessary ..
    print $error_log "$unique_identifier" .
      "$useful_variables $more useful variables\n";
    
  2. or download this
    system qq(echo  "$message" >> log.err);
    
  3. or download this
    print $error_log "$message\n";
    

Log In?
Username:
Password:

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

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

    No recent polls found