in reply to
Passing $2 to a sub
$_
is not the argument passed the function. To get that, you need to access the
@_
array -- you want the first element, which is
$_[0]
.
japhy
--
Perl and Regex Hacker
Comment on
Re: Passing $2 to a sub
Replies are listed 'Best First'.
Re: Re: Passing $2 to a sub
by
SparkeyG
(Curate)
on Feb 13, 2001 at 22:55 UTC
Ahh, boy is my face red.
Thanx
SparkeyG
[reply]
In Section
Seekers of Perl Wisdom