Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^4: Experimental warnings with given/when

by tobyink (Canon)
on Dec 02, 2020 at 01:18 UTC ( #11124492=note: print w/replies, xml ) Need Help??

in reply to Re^3: Experimental warnings with given/when
in thread Experimental warnings with given/when

match::simple is my take on a dumb match.

Its table is just:

Left Right Description and pseudocode =============================================================== Any undef check whether Any is undefined like: !defined Any Any non-ref string equality like: Any eq Any Any Regexp pattern match like: Any =~ /Regexp/ Any CODE sub passed Any returns true like: CODE->(Any) Any ARRAY smartmatch each ARRAY element[3] like: grep { Any ~~ $_ } ARRAY Any object call `MATCH` method on Object, or invoke ~~ overloading on Object, or die Any other die

So the behaviour is predictable based on the right-hand side.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2022-06-27 04:42 GMT
Find Nodes?
    Voting Booth?
    My most frequent journeys are powered by:

    Results (86 votes). Check out past polls.