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 (Saint) 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