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)'
In Section
Seekers of Perl Wisdom