You evaluate @_ in scalar context, which returns the number of elements (1). You need this instead:my $param = (@_);
my ($param)= @_;
In reply to Re: A dereferencing problem
by dave_the_m
in thread A dereferencing problem
by Scarborough
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |