Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Comparing a value to a list of numbers (in via smartmatch)

by LanX (Cardinal)
on Jan 29, 2021 at 16:47 UTC ( #11127646=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      DB<24> $x=5
    
    ...
      DB<27> p $x ~~ [1,2,5,6,9,10,41..56]
    
      DB<28>
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2021-06-13 11:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (54 votes). Check out past polls.

    Notices?