in reply to FILEHANDLE not visible outside subroutine
You should always check the return value of open:
open PS, "$psout |" or die $!;
Update: Also, it seems you are running the sub in a thread. Why do you think a filehandle would be shared?
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: FILEHANDLE not visible outside subroutine
by ravi6289 (Initiate) on Jul 29, 2013 at 02:34 UTC |
In Section
Seekers of Perl Wisdom