Just another Perl shrine | |
PerlMonks |
Re^4: Hash/Array slice : how to exclude items? -- be careful of anchoringby LanX (Saint) |
on Jan 24, 2023 at 18:02 UTC ( [id://11149842]=note: print w/replies, xml ) | Need Help?? |
Well spotted by you and badly tested by me, thanks. In the end the regex is a poor man's alternative for the unfortunately designed smartmatch operator ~~ Actually I was too occupied worrying if I need to quotemeta the input or if keeping the door open for regex-metas is a better interface, and forgot about precedence here. So another "fault" in the concept. =)
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|