|
|
| laziness, impatience, and hubris | |
| 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?? |
|
@_ 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.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||