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,
Zaxo
Update: Corrected block <-> expr terminology.
In reply to Re: Re: Re: Help me not use codefor($i=0;$i=$#array;$i++)/code...Please!
by Zaxo
in thread Help me not use for($i=0;$i=$#array;$i++)...Please!
by IraTarball
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |