This is always true. You probably want:
if ($file ne '.' and $file ne '..'){print "$file\n";}
--
The hell with paco, vote for Erudil!
:wq
In reply to Re: If statements with . and .. filehandles.
by FoxtrotUniform
in thread If statements with . and .. filehandles.
by sparkyichi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |