in reply to Re: why does push not default to $_?
in thread why does push not default to $_?
if @b is empty? It doesn't print $_print @b;
Furthermore there is no error with:for (1..13) { print @b; }
but you get a warning withpush @a, @b;
so perl can distinguish between missing parameters and empty parameters...push @a;
Cheers Rolf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: why does push not default to $_?
by ikegami (Patriarch) on Dec 04, 2008 at 21:48 UTC | |
by LanX (Saint) on Dec 04, 2008 at 23:25 UTC | |
by ikegami (Patriarch) on Dec 05, 2008 at 02:36 UTC |