Since 5.18, perl is throwing warnings about smartmatch ans well as given/when.
Mostly i use the ~~ smartmatch operator to test if a scalar exists within an array. Can use the exists() function either, because it's use on arrays is deprecated as well.
Is there a proper, future-proof alternative that does not require me to sprinkle foreach test loops all over the place?
"I know what i'm doing! Look, what could possibly go wrong? All i have to pull this lever like so, and then press this button here like ArghhhhhaaAaAAAaaagraaaAAaa!!!"