P is for Practical | |
PerlMonks |
bug? why does this ~~ smart match to an array slice fail?by flies (Novice) |
on Sep 30, 2010 at 18:50 UTC ( [id://862830]=perlquestion: print w/replies, xml ) | Need Help?? |
flies has asked for the wisdom of the Perl Monks concerning the following question:
I'm to see whether an element is in an array using ~~. Apparently, perl is treating an array slice as a scalar (size of slice):
I can use grep for this, but still. v5.10.0 built for x86_64-linux-thread-multi
Back to
Seekers of Perl Wisdom
|
|