On Wed, Jun 24, 2009 at 09:41:10PM +0400, Roman Makurin wrote:
> On Wed, Jun 24, 2009 at 09:25:05AM -0700, pa...@compugenic.com wrote:
> > I'd like to automatically have my script's errors and warnings sent to
> > both STDOUT (console) and a log file.  What is the proper way of doing this?
> 
> print STDERR mess;
> print FILEHANDLE mess;
> 

STDERR is where errors go.  Error messages are generated as a result of
an error, not a 'print' statement.  Athough I could manually print to
STDERR, I'm trying to log all errors to both a logfile and STDERR. 

How can I do that?

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to