How can I tell if a filehandle is empty in Perl?

Posted by joe on Stack Overflow See other posts from Stack Overflow or by joe
Published on 2010-05-10T11:38:21Z Indexed on 2010/05/15 2:04 UTC
Read the original article Hit count: 251

Filed under:
|

For example:

open (PS , " tail -n 1 $file | grep win " );

I want to find whether the file handle is empty or not.

© Stack Overflow or respective owner

Related posts about perl

Related posts about filehandle