No need for the; $1 in map { m!/([\w\.\-]+)\W*$!; $1 }
since a match in list context returns the captured substrings and the block of a map is in list context.
In reply to A no-op in this map block: was Re^2: This regular expression has me stumped
by Narveson
in thread This regular expression has me stumped
by tsk1979
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |