in reply to parse file name
see File::Spec
use File::Spec; my ($volume, $directories, $file) = File::Spec->splitpath( $path ); my ($extension) = $file =~ /\.([^\.]+)$/;
In Section
Seekers of Perl Wisdom