Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: why does push not default to $_?by mr_mischief (Monsignor) |
on Dec 08, 2008 at 21:49 UTC ( [id://729042]=note: print w/replies, xml ) | Need Help?? |
My first guess would be that push is paired with pop. You might very well want to say, for example, pop @foo; without putting what was popped anywhere. If push() took $_ by default, one might expect pop() to assign to $_ by default. Logical pairs that don't both deal with the same implicit variable should probably neither one do so.
In Section
Seekers of Perl Wisdom
|
|