We don't bite newbies here... much | |
PerlMonks |
Why doesn't Perl default (more)by misterperl (Pilgrim) |
on Aug 19, 2020 at 13:34 UTC ( [id://11120901]=perlquestion: print w/replies, xml ) | Need Help?? |
misterperl has asked for the wisdom of the Perl Monks concerning the following question:
Why isn't
equivalent to
also why isn't the same as:
..randomly,it seems that sometimes good ole $_ works as in:
Might as well have defaulted everything to something; allowing code to be more concise, succinct, and economical. It would be awesome to have some PerVars that we could use to set the default scalar, array, and hash.. Larry what were you thinking? When we discussed this at OSCON, you seemed to favor defaults as a default ?
Back to
Seekers of Perl Wisdom
|
|