in reply to Re: Reading part of a file name
in thread Reading part of a file name
my ($filename, $code_number) = split(/\./, $_, 2);
so that you are splitting on a literal full-stop.
Also, your
next if ( $_ eq '..' ); next if ( $_ eq '.' );
can be more neatly achieved by
next if /^\.\.?$/;
Cheers,
JohnGG
|
|---|