![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: using smartmatch for range matchingby hippo (Archbishop) |
on Nov 25, 2023 at 16:22 UTC ( [id://11155821]=note: print w/replies, xml ) | Need Help?? |
Yes, smartmatch is deprecated. It is going away entirely in Perl 5.42. Follow the link for reasoning. Is there a more elegant solution similar to the smartmatch example? Well, there are plenty of modules you could use. Perhaps Number::Range? I have not used it but it might fit the bill. Note also that although deprecated and depreciated are similar words they do not mean the same thing. 🦛
In Section
Seekers of Perl Wisdom
|
|