Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: using 'my $var' vs. 'my($var)'

by redcloud (Parson)
on Oct 26, 2000 at 18:13 UTC ( #38608=note: print w/ replies, xml ) Need Help??


in reply to using 'my $var' vs. 'my($var)'

@_ is evaluated in a scalar context in the first example. So, you're getting the number of entries in @_ in $conf_file instead of the actual parameter that you passed in.


Comment on Re: using 'my $var' vs. 'my($var)'

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2015-07-30 08:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (270 votes), past polls