in reply to Perl6: Smartmatch scalar to array
$scalar ~~ any(@array)
does what you meant, don't know if it's supposed to be the default though.
does what you meant, don't know if it's supposed to be the default though.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Perl6: Smartmatch scalar to array
by TimToady (Parson) on Aug 16, 2010 at 20:14 UTC | |
by molecules (Monk) on Aug 18, 2010 at 17:36 UTC | |
Re^2: Perl6: Smartmatch scalar to array
by molecules (Monk) on Aug 16, 2010 at 18:38 UTC |
In Section
Seekers of Perl Wisdom