ISAI student has asked for the wisdom of the Perl Monks concerning the following question:
The machine would output:foreach i {1 2} j {3 4} { puts $i puts $j }
W/o a need for an integer iterator. The language engine checks for list/array length. Is there something similar in PERL?1 3 2 4
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: tcl like 1 loop with two operators
by Corion (Patriarch) on Jan 24, 2011 at 12:58 UTC | |
by AnomalousMonk (Archbishop) on Jan 24, 2011 at 17:30 UTC | |
|
Re: tcl like 1 loop with two operators
by JavaFan (Canon) on Jan 24, 2011 at 13:26 UTC | |
by Mask (Pilgrim) on Jan 25, 2011 at 15:14 UTC | |
|
Re: tcl like 1 loop with two operators
by Fletch (Bishop) on Jan 24, 2011 at 13:31 UTC |