in reply to Re^2: why doesn't "my ($a,$b)" return a list?
in thread why doesn't "my ($a,$b)" return a list?
My point was that my, our and state aren't subs but operators and shouldn't be handled as subs.
The named operators (my, print, substr, time, etc) are just like subs in many regards, to the point of being called (builtin) functions.
my happens to have a compile-time effect, but it still behaves like a sub at run-time.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: why doesn't "my ($a,$b)" return a list?
by LanX (Saint) on Aug 19, 2010 at 16:02 UTC | |
by ikegami (Patriarch) on Aug 19, 2010 at 17:54 UTC | |
by LanX (Saint) on Aug 19, 2010 at 18:56 UTC | |
|
Re^4: why doesn't "my ($a,$b)" return a list?
by JavaFan (Canon) on Aug 19, 2010 at 17:41 UTC | |
by ikegami (Patriarch) on Aug 19, 2010 at 18:11 UTC | |
by LanX (Saint) on Aug 19, 2010 at 19:50 UTC | |
by ikegami (Patriarch) on Aug 19, 2010 at 20:26 UTC | |
by LanX (Saint) on Aug 19, 2010 at 21:02 UTC | |
| |
by JavaFan (Canon) on Aug 19, 2010 at 21:24 UTC | |
by ikegami (Patriarch) on Aug 19, 2010 at 21:58 UTC | |
by JavaFan (Canon) on Aug 20, 2010 at 08:22 UTC | |
|