in reply to How to distinct the call position of a sub?
Wrong question. The better question is "How should I format the following so it is readable, maintainable, oh, and so caller tells me which iter is being called?". Phrased like that the answer is obvious:
while (my $x = iter (1, 10)) { while (my $y = iter (1, 10)) { print "$x$y" } }
with the bonus that it is then easy to see that there was a missing ( for the second while expression.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to distinct the call position of a sub?
by BrowserUk (Patriarch) on Nov 24, 2008 at 21:59 UTC |