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.
In reply to Re: if -s clause on a FILEHANDLE
by Fletch
in thread if -s clause on a FILEHANDLE
by drock
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |