Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: using 'my $var' vs. 'my($var)'by redcloud (Parson) |
on Oct 26, 2000 at 18:13 UTC ( [id://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
|
|