in reply to if -s clause on a FILEHANDLE
Erm, why not just if( @ftapes ) { ... }?
Update: Also note that since you call select OUT and never re-select the old handle that your print will go to the OUT handle. You may want to use the common select( (select(OUT),$|=1)[0] ) idiom instead.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: if -s clause on a FILEHANDLE
by drock (Beadle) on Jun 08, 2004 at 14:24 UTC | |
by Fletch (Bishop) on Jun 08, 2004 at 14:42 UTC | |
by drock (Beadle) on Jun 08, 2004 at 21:43 UTC |