3 - if you "open my $filehandle..." you can treat $filehandle as any other scalar variable, you could probably use simply while ($filehandle) instead while (<$FILEHANDLE>) unless you have a reason to do this (that I'm probably missing)
while ($filehandle) loops while the variable $filehandle contains a TRUE value.
while (<$FILEHANDLE>) is short for while ( defined( $_ = readline $FILEHANDLE ) ) and it loops until readline returns undef.
In reply to Re^2: -s testing for empty file; works on local, but not on remote
by jwkrahn
in thread -s testing for empty file; works on local, but not on remote
by Jeri
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |