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

it's obvious that there is a possibility to overwrite &CORE::grep but none for &CORE::my, since they belong to completely different concepts.

No, grep cannot be overridden. Just like my, it cannot be represented by prototypes. That's the only thing that controls whether something can be overridden or not.

Again, I don't know what your point is. It's been a while since I've had any idea what you are trying to communicate. (Since JavaFan's reply, at least.)

Replies are listed 'Best First'.
Re^14: why doesn't "my ($a,$b)" return a list?
by LanX (Saint) on Aug 20, 2010 at 21:33 UTC
    > 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