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

So far, you've only given examples of how you can't use my.
Let's see, I gave several examples where you either can't use my where you can use subs, or where my behaves different than subs do.

How much more differences do you need before you could imagine someone doesn't consider my to behave like a sub? Heh, I don't care one iota what you consider to be subs or not. I don't consider my to behave like a sub. And I've pointed out enough differences why I don't consider my to act like a subroutine call.

Replies are listed 'Best First'.
Re^9: why doesn't "my ($a,$b)" return a list?
by ikegami (Patriarch) on Aug 20, 2010 at 13:47 UTC

    Let's see, I gave several examples where you either can't use my where you can use subs

    All subs have limits on their arguments.

    or where my behaves different than subs do.

    That's what you said, and I asked for that example. Repeating yourself doesn't help. The only thing example I see is that my() takes a list of variables for arguments, which just goes to show that it is like sub. Nothing else has arguments.