in reply to Open pipe to a function?
If you are going to pipe it to a script, then I believe it has to be in another script.
If all you need to do is write STDERR to a file, why not just do this at the beginning of your script:
If all you need to do is write STDERR to a file, why not just do this at the beginning of your script:
Update:Try using IO::Tee, like suggested by Roy Johnson. I included a sample in my reply to you below.open(STDERR, '>error.txt');
- Tom
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Open pipe to a function?
by Sprad (Hermit) on Dec 10, 2003 at 21:44 UTC | |
by hardburn (Abbot) on Dec 10, 2003 at 21:48 UTC | |
by tcf22 (Priest) on Dec 10, 2003 at 21:59 UTC |
In Section
Seekers of Perl Wisdom