To parse the file extension, just capture the text following the last .:
$filename =~ /(?<=\.)([^.]+)$/;
In reply to Re^3: elements not reversing inside a map
by eibwen
in thread elements not reversing inside a map
by Transient
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |