You could also one-line it by catching the matches with alist assignment to avoid reading from $1:
my ($extension) = $filename =~ /\.([^\.]+)$/;
In reply to Re: Re: Extracting just the extension from a filename.
by simeon2000
in thread Extracting just the extension from a filename.
by brentheigold
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |