Think about Loose Coupling | |
PerlMonks |
Re^2: Weird grep behaviourby naikonta (Curate) |
on Oct 17, 2007 at 07:36 UTC ( [id://645388]=note: print w/replies, xml ) | Need Help?? |
It's not about comparison, BLOCK and EXPR are evaluated in boolean context. From OP's sample code, in grep($var1, @arr1), $var1 is always true.
Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!
In Section
Seekers of Perl Wisdom
|
|