in reply to How to extract the substring from a delimiter (dot) to end of string?

How about using split:

$extension = (split /\./, $string)[-1];
  • Comment on Re: How to extract the substring from a delimiter (dot) to end of string?
  • Download Code