in reply to Re: why does push not default to $_?
in thread why does push not default to $_?
First of all, that's not true. The following are all acceptable:
push @a; push @a, 'a'; push @a, 'a', 'b';
Second, if it was true, that doesn't answer why the second parameter can't be optional, defaulting to $_.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: why does push not default to $_?
by toolic (Bishop) on Dec 04, 2008 at 21:51 UTC | |
by LanX (Saint) on Dec 04, 2008 at 21:56 UTC | |
by davidrw (Prior) on Dec 06, 2008 at 01:01 UTC | |
by LanX (Saint) on Dec 06, 2008 at 01:11 UTC | |
by ikegami (Patriarch) on Dec 04, 2008 at 21:58 UTC |