--- Peter Lemus <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I need to create a log from a perl script that
> generates a lot of errors and successful completion
> messages. Please give me some tips on how I can
> accomplish this.
>
> thanks,
Are you just using warn()?
You can actually open STDERR to a file, or even STDOUT.
open STDERR, ">$somefile" or die $!;
You could also a logfile and then make it the default output, like so:
open LOG, ">$somefile" or $!;
select LOG;
Now, if you just say
print "foo\n";
it goes into $somefile. You can even combine these:
open STDERR, ">$somefile" or die $!;
select STDERR;
warn "This goes to $somefile!\n" if $oops;
Paul
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/