Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://38608]
help
Chatterbox?
[Jeri]: heyyyy!!!!
[Jeri]: I'm about to leave work!!!
[Jeri]: wooooo hooooo!

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2017-02-23 21:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (351 votes). Check out past polls.