in reply to How to take only maximum directory name by using its digits using perl?
For what it's worth, this:
open LOGFILE, $location;
Should most definitely be replaced with the three-arg open with a lexical file handle, and an error check:
open my $fh, '<', $location or die "can't open the damned file!: $!";
$fh there represents your bareword LOGFILE. Bareword file handles are global, and really shouldn't be used.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to take only maximum directory name by using its digits using perl?
by finddata (Sexton) on Mar 29, 2017 at 04:10 UTC |