Front page | perl.beginners |
Postings from July 2003
catching STDERR
Thread Next
From:
Marcos.Rebelo
Date:
July 28, 2003 01:40
Subject:
catching STDERR
Message ID:
A6B679E5336AD61194C10008C716162802F62D34@ec9005.don.eurocopter.de
For testing I have this script
:::::: testeSTDERR.pl :::::::::::::::::::::::::::::
warn "$_\n" foreach (1..10);
:::::::::::::::::::::::::::::::::::::::::::::::::::
:::::: showSTDERR.pl ::::::::::::::::::::::::::::::
use strict;
open FILE, "perl testeSTDERR.pl |2 ";
print(join(", ", <FILE>));
close FILE;
:::::::::::::::::::::::::::::::::::::::::::::::::::
So I'm trying to get the STDERR. How do I do this?
Thanks
Marcos
Thread Next
-
catching STDERR
by Marcos.Rebelo