The key to this working is the regular expression passed to the fileparse method
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!
In reply to Re^2: Parse out the extension of a filename - return base of filename.
by freonpsandoz
in thread Parse out the extension of a filename - return base of filename.
by snafu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |