http://www.perlmonks.org?node_id=1004258


in reply to help in understanding a regex

with $string =~ m/[^/]+)$/; using strict and warnings, you would get unmatched error [ in regex ...
Please note the usage of the "/" as the delimiter,
which you have to "escape" to use within the m// like so: $string =~ m/[^\/]+)$/;
Please check the subtitle m/PATTERN/msixpodualgc under Regexp-Quote-Like-Operators

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me