how to find the 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/10 11:44 UTC
Read the original article Hit count: 177

Filed under:

For example :

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

i want to find whether the file handle is empty or not ?

is there any way to do it ?

© Stack Overflow or respective owner

Related posts about perl