Make sure the file doesn't have more than one dot..
my ($suffix) = $file =~ m/([^\.]+)$/; [download]
In reply to Re: Re: Re: parse filenames by ehdonhon in thread parse filenames by esolm