in reply to Smartmatch alternatives
From the documentation for Scalar::In:
This module was written because the smartmatch operator ~~ was deprecated as experimental.
But the syntax is less elegant:
22:58 >perl -MScalar::In -wE "my @x = qw( Fred Wilma Barney Betty ); s +ay 'Found Wilma' if string_in(@x, 'Wilma');" Found Wilma 23:00 >
Hope that helps,
Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
In Section
Seekers of Perl Wisdom