Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^3: First Question, why something works? (-M)by Athanasius (Archbishop) |
on Apr 16, 2014 at 13:38 UTC ( [id://1082505]=note: print w/replies, xml ) | Need Help?? |
Hello i255d, and welcome to the Monastery! Yes, this is one of many places where Perl uses the special $_ variable implicitly, making it easier to write concise, elegant code. For a list of the places where Perl uses $_ implicitly, see the first entry in perlvar#General-Variables. (If you’re not already familiar with the Perl documentation site, bookmark it now and get to know your way around as soon as possible.) The Camel Book (4th Edition, p. 706) has this advice:
Hope that helps,
In Section
Seekers of Perl Wisdom
|
|