![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: What this pattern matchesby ikegami (Patriarch) |
on May 12, 2006 at 05:22 UTC ( [id://548909]=note: print w/replies, xml ) | Need Help?? |
That code stores in $1 a copy of $b with everything after the last "_" removed, including the "_" itself. There are exceptions.
When executed in list context, it returns $1 on match or an empty list on failure to match.
In Section
Seekers of Perl Wisdom
|
|