P is for Practical | |
PerlMonks |
Re: Re: Re: Help me not use codefor($i=0;$i=$#array;$i++)/code...Please!by Zaxo (Archbishop) |
on Jun 21, 2001 at 02:30 UTC ( [id://90230]=note: print w/replies, xml ) | Need Help?? |
If you bracket it, the grep expression becomes a block. It can be as complicated as you please. If it evaluates true, $_ (possibly modified within the block) is placed in the returned array. After Compline, Update: Corrected block <-> expr terminology.
In Section
Seekers of Perl Wisdom
|
|