As illustrated <FILEHANDLE> reads either single line or full file depending on whether one stores it in a scalar or an array |
print FILEHANDLE list; # writes list onto FILEHANDLE and simple |
print list; # is equivalent to |
print STDOUT list; |
There are a whole set of test operators which act on File NAMES not FileHANDLES |
-e $filename returns true if $filename EXISTS |
-r $filename returns true if $filename is READABLE |
-w $filename returns true if $filename is WRITABLE |
-x $filename returns true if $filename is EXECUTABLE |