in reply to Re: why doesn't "my ($a,$b)" return a list?
in thread why doesn't "my ($a,$b)" return a list?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: why doesn't "my ($a,$b)" return a list?
by ikegami (Patriarch) on Aug 19, 2010 at 15:19 UTC | |
by LanX (Saint) on Aug 19, 2010 at 15:24 UTC |