Perl: the Markov chain saw | |
PerlMonks |
Re: The $_ Special Variableby wind (Priest) |
on Jun 21, 2011 at 17:46 UTC ( [id://910780]=note: print w/replies, xml ) | Need Help?? |
In that instance, $_ could be anything. But you can assign directly to $_ to let m// use it as default instead.
The more common use of $_ is when it's the default iterator in a for loop, or in a while loop when reading from a file.
In Section
Seekers of Perl Wisdom
|
|