Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Carpout makes script run, but outputs no errors?

by punch_card_don (Curate)
on Sep 23, 2008 at 14:27 UTC ( [id://713221]=note: print w/replies, xml ) Need Help??


in reply to Carpout makes script run, but outputs no errors?

Hmmm - Moritz & Anonymous Monk got me thinking, and I changed it to:
BEGIN { use CGI::Carp qw(carpout); open(ERROR_LOG, ">>my_error_log") or die("my_error_log: $!\n"); carpout(\*ERROR_LOG); }
And low & behold, there's my error output - mostly uninitialized values used in comparisons and concatenations. I've been pasting together old subroutines and some variables used in the subroutines but not in my application are not getting initialized for a few records.

I'll fix all that and see if it then runs without this.

Thanks.

Update: yep, that did it.




Time flies like an arrow. Fruit flies like a banana.

Replies are listed 'Best First'.
Re^2: Carpout makes script run, but outputs no errors?
by moritz (Cardinal) on Sep 23, 2008 at 15:06 UTC
    This demonstrates yet again that copy&paste is the programmer's devil - so tempting, so easy, and yet evil and fraught with peril.

Log In?
Username:
Password:

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

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

      No recent polls found