in reply to How to distinct the call position of a sub?

Why can't you write
while (my $x=iter(0, 1,10)) { while (my $y=iter(1, 1,10)) { print "$x$ +y" }}
??

Replies are listed 'Best First'.
Re^2: How to distinct the call position of a sub?
by LanX (Saint) on Nov 25, 2008 at 08:38 UTC
    How should iter() know which value to return? ... for $x or $y?