> But this one in its place does not work:
> if ($link =~ m/\/([^/]*)$/) { # Oddly this does not workYou still need to escape the `/` inside the character class. This works in my testing: `m/\/([^\/]*)$/`. IMO this is a case where an alternative delimiter for `m//` — such as the `#` in your working example — is a better approach. chrs, john. -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
