in reply to Re^2: The $_ Special Variable
in thread The $_ Special Variable
$_ is just a special global variable as defined in perlvar.
It is used as the default input for a lot of builtin functions when nothing else is defined. But yes, it can be thought of as just any other variable, just one that is declared automatically by perl to enable you to write tighter code when you want to.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: The $_ Special Variable
by chuloon (Initiate) on Jun 21, 2011 at 18:03 UTC | |
by wind (Priest) on Jun 21, 2011 at 18:20 UTC | |
by chuloon (Initiate) on Jun 21, 2011 at 18:32 UTC | |
by wind (Priest) on Jun 21, 2011 at 19:43 UTC | |
by ww (Archbishop) on Jun 22, 2011 at 00:49 UTC | |
by chuloon (Initiate) on Jun 22, 2011 at 12:28 UTC | |
by chuloon (Initiate) on Jun 21, 2011 at 18:25 UTC |
In Section
Seekers of Perl Wisdom