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?
In reply to Re: FILEHANDLE not visible outside subroutine
by choroba
in thread FILEHANDLE not visible outside subroutine
by ravi6289
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |