tphyahoo has asked for the wisdom of the Perl Monks concerning the following question:
I'd like to capture all errors to a text file to review later. This is for situation I'm having in another program, where I get so many error messages so fast that they scroll of the command line before I can type ctrl-c, so I can't get back to the first error, which is probably the root of all the later evil.#errorToOut.pl use strict; use warnings; #causes error. print $forgotToDeclareThis
I tried perl errorToOut.pl > output.txt but this simpleminded little attempt of mine didn't work.
Wise monks, can someone help me with this?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I output error messages to a file?
by gellyfish (Monsignor) on Jan 26, 2005 at 11:14 UTC | |
by inman (Curate) on Jan 26, 2005 at 11:57 UTC | |
by gellyfish (Monsignor) on Jan 26, 2005 at 12:21 UTC | |
|
Re: How do I output error messages to a file?
by jweed (Chaplain) on Jan 26, 2005 at 11:26 UTC | |
|
Re: How do I output error messages to a file?
by Frantz (Monk) on Jan 26, 2005 at 11:41 UTC | |
|
Re: How do I output error messages to a file?
by tphyahoo (Vicar) on Jan 26, 2005 at 12:25 UTC | |
by renz (Scribe) on Jan 26, 2005 at 14:59 UTC | |
by tphyahoo (Vicar) on Jan 27, 2005 at 09:40 UTC | |
|
Re: How do I output error messages to a file?
by ambrus (Abbot) on Jan 26, 2005 at 14:57 UTC |