Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^4: Hash/Array slice : how to exclude items? -- be careful of anchoring

by LanX (Saint)
on Jan 24, 2023 at 18:02 UTC ( [id://11149842]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Hash/Array slice : how to exclude items? -- be careful of anchoring
in thread Hash/Array slice : how to exclude items?

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
(addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
Wikisyntax for the Monastery

  • Comment on Re^4: Hash/Array slice : how to exclude items? -- be careful of anchoring

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11149842]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-03-29 15:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found