--- "Cutts III, James H." <[EMAIL PROTECTED]>
wrote:
> I am using ActiveState Perl v5.6.1 build 631 for a
> bunch of different projects.  I keep coming up with
> the same need in most of my programs.  I would like
> to be able to direct output to both the screen and a
> file without having to use pairs of print
> statements.
> 
> The code:
>       print LOG_FILE "something useful here";
>       print "something useful here";
> quickly becomes challenging to manage and gets long
> quickly.  (I wouldn't mind if I were paid by the
> line.)
> 
> I would like is to have a file handle to the file
> and a file handle to the file and STDOUT
> combination.  This would allow me to send everything
> that goes to the console to the file, but also be
> able to send lines directly to the file without
> going to the console.  Is this possible or am I just
> being lazier than the standard PERL programmer.
> 

You might look at Log::Logger.  It has  a OO
interface. I modified it slightly so it printed the
time and date too.

-CO



__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to