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