On 03/22/2007 03:16 AM, lakshmi priya wrote:
Hi,
How do I redirect the warning messages from my perl script to a different file? By default they are all getting printed on the terminal.


In addition to Jeff Pang's suggestion, read "perldoc -f open". You can redirect STDERR to a file:

open STDERR, '>>', 'mylogfile.log'
  or die('...');



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to