How about using split:
$extension = (split /\./, $string)[-1];
In reply to Re: How to extract the substring from a delimiter (dot) to end of string?
by Novician
in thread How to extract the substring from a delimiter (dot) to end of string?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |