in reply to Debugging My Perl
redirects STDOUT (1) and STDERR (2) to the file out.perl script.pl 1>out 2>&1
I am going to assume you are on Win32 in which case redirection of STDERR does not work. On old versions of Win32 redirection of STDERR does not work. Perhaps the easiest way to see all your errors is simply to increase the screen buffer of the (DOS) terminal window you are using to run your perl script. To increase the buffer, do this in a DOS window:
Now you will have a scroll bar on the RHS of the DOS window and will be able to scroll back through hundreds of lines.
Fixed incorrect statement as noted by BrowserUk and AM and changed syntax to one that works on Win32 and with Bash.
cheers
tachyon
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Debugging My Perl
by sintadil (Pilgrim) on Sep 06, 2004 at 10:57 UTC | |
by tachyon (Chancellor) on Sep 06, 2004 at 10:59 UTC | |
by sintadil (Pilgrim) on Sep 06, 2004 at 11:02 UTC | |
|
Re^2: Debugging My Perl
by DrHyde (Prior) on Sep 06, 2004 at 09:25 UTC | |
|
Re^2: Debugging My Perl
by BrowserUk (Patriarch) on Sep 06, 2004 at 14:01 UTC | |
|
Re^2: Debugging My Perl
by Anonymous Monk on Sep 06, 2004 at 11:45 UTC | |
|
Re^2: Debugging My Perl
by Spidy (Chaplain) on Sep 06, 2004 at 04:45 UTC |