[EMAIL PROTECTED] (Brent Dax) writes:
> # > # could do the same thing with a sub with a prototype of
> # > # (&block, *@list).
> 
> OK.  Let's say I'm implementing HugeOnDiskArray, and instead of slurping
> the array in and grepping over it, I want to grab the elements one at a
> time, run them through the grep function's coderef, and stick them in
> another HugeOnDiskArray.

So if you want a lazy grep, you use (&block, $list) rather than (&block,
*@list). Still no additional syntax required.

-- 
"Nuclear war can ruin your whole compile."
-- Karl Lehenbauer

Reply via email to