$_ and @_
What does these two symbols mean:
$_ and [at] _
Re: $_ and @_
david wolf wrote:
> What does these two symbols mean:
>
> $_ and [at] _
They are very fundamental in how perl operates.
You can find their definition in any tutorial on perl.
http://learn.perl.org
-Joe
Re: $_ and @_
david wolf wrote:
> What does these two symbols mean:
>
> $_ and [at] _
$_ is the "default" variable for many, many built-in functions and
control structures (print, foreach, stat, chomp, =~, grep, map, to name
a few).
[at] _ is the array that contains the arguments passed to the current
subroutine.
Read more about them in
perldoc perlvar
and
perldoc perlsub
Paul Lalli
Re: $_ and @_
you guys are great, very helpful.
Thanks !!!