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

Re^3: using smartmatch for range matching

by ikegami (Patriarch)
on Nov 26, 2023 at 22:56 UTC ( [id://11155861]=note: print w/replies, xml ) Need Help??


in reply to Re^2: using smartmatch for range matching
in thread using smartmatch for range matching

It's a trivial sub you can write yourself:

sub in_range { $_[1] <= $_[0] <= $_[2] }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-05-21 21:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found