in reply to Re^3: Create new directories
in thread Create new directories
and checking an open() for success is even safer:
open FILE, '<', $ARGV[0] or die "$ARGV[0]: $!\n";
In cases, that it can't open the file, it won't try to read from an unopened filehandle FILE, but end the script with an error message.
|
|---|