Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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

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?
[choroba]: Good morning!
[Discipulus]: good morning choroba!
[Corion]: Hi choroba, Discipulus! I hope you had a good weekend
erix looks for a red-herring joke but can't find one
Discipulus has worked physically and he rediscovered he is no more wont..
erix instead casts a baleful eye on another mysql q.
[Corion]: erix: I'm not sure if it really is MySQL - maybe MS SQL also has LIMIT 0

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2017-01-23 09:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (192 votes). Check out past polls.