Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Re: How do I...Redirect error.log data to a file of my chosing

by crazyinsomniac (Prior)
on Jun 01, 2002 at 10:16 UTC ( [id://170899]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    BEGIN {
        use CGI::Carp qw(carpout);
        carpout(\*LOGGY) if open(LOGGY,'>>'.__FILE__.'.err.log');
    
    }
    
  2. or download this
    #!/usr/bin/perl
    use warnings FATAL => qw( all );
    ...
      BAREWORD;
    }
    
  3. or download this
    #!/usr/bin/perl
    $SIG{__WARN__} = sub {die("warning: ",@_)};
    warn "hello";
    __END__
    
  4. or download this
    #!/usr/bin/perl
    use CGI::Carp qw( fatalsToBrowser );
    ...
    use strict;
    use warnings;
    warn "hello";
    
  5. or download this
    BEGIN {
       use vars qw( $WARR );
    ...
    END {
        print "Content-Type: text-html\r\n\r\n <pre> $WARR </pre>";
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found