in reply to Re^13: why doesn't "my ($a,$b)" return a list?
in thread why doesn't "my ($a,$b)" return a list?

> No, grep cannot be overridden.

arghh ... thats paradox, perlsub is full of examples for reimplementation of the Perl "grep" operator, but in reality it can't be overridden just because of this useless extra statement instead of block syntax can't be expressed with prototypes.

OTOH (partially) overriding do and require is allowed.

Cheers Rolf