Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by Marshall (Canon)
on Jan 30, 2021 at 02:27 UTC ( #11127673=note: print w/replies, xml ) Need Help??


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

I personally would not use the smartmatch operator for anything.
I did some experimenting with this experimental operator and found out that it is "too smart for me!". I could not accurately predict what this thing would actually do!
  • Comment on Re^2: Comparing a value to a list of numbers (in via smartmatch)

Replies are listed 'Best First'.
Re^3: Comparing a value to a list of numbers (in via smartmatch)
by LanX (Cardinal) on Jan 30, 2021 at 02:32 UTC
    I agree, but there is a real need for an "in"-operator like in other languages.

    I hope this aspect will survive somehow and I listed it for completeness with full warning.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2021-06-13 03:36 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?