in reply to Indirect filehandles
use FileHandle; my $out = new FileHandle ">&STDOUT"; autoflush $out; my $in = new FileHandle "<&STDIN";
That way, you don't have any typeglob confusion.
Now, the method above doesn't work in Win32 the way it does in Unix, cause you cannot select on $in. (Of course, I have a sneaking suspicion that you cannot select on STDIN, no matter how you try to do it, but that's neither here nor there...)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Indirect filehandles
by nysus (Parson) on Jul 17, 2001 at 21:57 UTC |