There's more than one way to do things | |
PerlMonks |
Re: Can't capture STDERR to Variableby salva (Canon) |
on Jul 21, 2011 at 10:21 UTC ( [id://915825]=note: print w/replies, xml ) | Need Help?? |
Use Capture::Tiny or some other similar module.
File handles opened to scalar references can not be used outside the Perl process where they were created (and even then, most modules wrapping external C libraries will also fail to recognize them as valid file handles).
In Section
Seekers of Perl Wisdom
|
|