in reply to Re: Redirecting STDOUT from internal function with 5.6.1 restrictions
in thread Redirecting STDOUT from internal function with 5.6.1 restrictions
For a minute there I thought you were on to something, but alas it turned out to be an incorrect assumption. Here is how I see it... In the code Test module Test.pm 'makes a copy' of the STDOUT filehandleThis has the same effect as below:$TESTOUT = *STDOUT{IO};In either case Perl comes back complaining that: "A file or directory in the path name does not exist at ...". Which means that the last parameter in the 5.6.1 version of open must point to a string with a path/filename. mgcopen( TESTOUT, ">&STDOUT" ) || die "dup failed";
- Comment on Re^2: Redirecting STDOUT from internal function with 5.6.1 restrictions
- Select or Download Code
- Watch for: Direct replies / Any replies
Replies are listed 'Best First'. | |
---|---|
Re^3: Redirecting STDOUT from internal function with 5.6.1 restrictions
by Jenda (Abbot) on Oct 12, 2004 at 19:30 UTC | |
by mgc (Novice) on Oct 12, 2004 at 20:43 UTC |
In Section
Seekers of Perl Wisdom