nope my returns the number of declared variables, see the update in the OP.
> To avoid this problem, remove the prototype
prototype is not the problem.
> or use use
> tst(my $x, my $y);
which unfortunately results in tst(state $x, state $y); in my case!
Cheers Rolf
In reply to Re^2: why doesn't "my ($a,$b)" return a list?
by LanX
in thread why doesn't "my ($a,$b)" return a list?
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |