in reply to Re^3: sub STDERR { *STDERR } -- nearly works !
in thread sub STDERR { *STDERR } -- nearly works !
Ah. It looked like one of those "between you and me it's a miracle this works, and sometimes it doesn't" sort of warnings !
Documentation http://perldoc.perl.org/perlmod.html says "In addition, when unqualified, the identifiers STDIN, STDOUT, STDERR, ARGV, ARGVOUT, ENV, INC, and SIG are forced to be in package main , even when used for other purposes than their built-in ones."
But, it is now clear that I should have understood "unqualified" to mean "unqualified by a package name" (not "unqualified by any 'decoration'" -- doh!)
So I'll go away and stop worrying about it ! I don't need the export, and even if I did, it would be OK.
Thank you.
|
|---|