- or download this
my $dir = shift; # get the first command line arg
my $path = "/remote/scm/rsync/builds/$arg/FailedInformal";
...
# and closing the DIR handle is good
closedir DIR;
- or download this
open FILE, $latest or die "Can't open $latest: $!\n";
....
- or download this
# presume / as path separator
my $latest_file = "$path/$latest";
open FILE, $latest_file or die ...;