Your skill will accomplish what the force of many cannot |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
The Camel book gives a good hint: "The underline is the underlying operand in certain operations."
These "certain operations" are the unary functions and the iterators like foreach,for, map{}, grep{}. The idea is that in a unary function there is only one operand and since these are used very often and Perl is Huffman encoded, it makes great sense to have a special name when this operand is not specified. The push function is not unary and it would be a bad idea to include special names in its operands. Moreover, push mutates its first operand and it would really be a bad idea to change data and at the same time hide from the developer how the data is being changed. In reply to Re: why does push not default to $_?
by ptoulis
|
|