m introduces a regex to be used for matching; whatever follows it is the delimeter around the regex. m!/([^/]+)$! would be exactly the same, as would m/\/([^\/]+)$/ (note that with / as the delimeter, /'s in the regex need to be escaped with \).
In reply to Re: Perl Regular Exp
by ysth
in thread Perl Regular Exp
by Nalina
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |