Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Mysterious script crash in win2k and ActivePerl

by Mr. Muskrat (Canon)
on Dec 13, 2002 at 16:31 UTC ( #219628=note: print w/replies, xml ) Need Help??

in reply to Mysterious script crash in win2k and ActivePerl

Try sending all errors to a file instead of the console.

Something like should do the trick:

BEGIN { $|++; open(STDERR, ">>", "mysterious_errors.txt"); }

The >> is so that you append new errors to the file instead of overwriting it each time your program is run.

Also add error checking with something like:
do_something_with(@my_args) or die("Couldn't so_something_with ", $!);

Replies are listed 'Best First'.
Re: Re: Mysterious script crash in win2k and ActivePerl
by jhanna (Scribe) on Dec 13, 2002 at 16:48 UTC
    I'm not redirecting STDERR yet. I'll add that, but I think it's a Windows level error, so I doubt I'll see anything there. Still, it's worth a try.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2019-12-15 03:29 GMT
Find Nodes?
    Voting Booth?

    No recent polls found