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
In reply to Re^2: why does push not default to $_?
by LanX
in thread why does push not default to $_?
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |