in reply to Re^5: RFC: Accelerated stepping
in thread RFC: Accelerated stepping

grep sub { ... }, @list

never runs the anonymous subroutine and always returns all of @list since a code ref evaluates to 'true' in a Boolean context.

- tye        

Replies are listed 'Best First'.
Re^7: RFC: Accelerated stepping (true sub)
by hexcoder (Curate) on Sep 08, 2008 at 14:21 UTC
    Oops,

    thanks for your comment, I missed that.