note
freonpsandoz
<p>
<i>The key to this working is the regular expression passed to the fileparse method</i>
</p>
<p>
Too bad File::Basename doesn't set a reasonable default for the fileparse() RE based on the OS like it does for the path separator. If you understand REs well enough to supply a correct one to fileparse(), you most certainly don't need File::Basename to get the file extension!
</p>
151232
151268