Perl: the Markov chain saw | |
PerlMonks |
Re^3: why does push not default to $_?by ikegami (Patriarch) |
on Dec 07, 2008 at 17:47 UTC ( [id://728754]=note: print w/replies, xml ) | Need Help?? |
It's not a good idea. The only thing you could push onto the "stack" is would be the contents of an array. For example, you can't make push $foo; work without breaking push @foo, $x;. The usefulness of the feature is just too limited to compensate for the confusion the its implementation would cause.
In Section
Seekers of Perl Wisdom
|
|