Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Passing $2 to a sub

by japhy (Canon)
on Feb 13, 2001 at 22:53 UTC ( #58191=note: print w/ replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://58191]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2015-08-03 06:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (25 votes), past polls