in reply to Re^4: Generating lists of strings
in thread Generating lists of strings
nFor would require:
local $, = ", "; local $\ = "\n"; nFor { print map $lists[$_][ $_[$_] ], 0..$#_; } map 0+@$_, @lists;
Baloney! You just like complicated don't you.
All that's needed is the intuative:
my @list1 = qw( apple orange tomato ); my @list2 = qw( dog cat platypus ); my @list3 = qw( 1 2 III ); nFor{ print join ' ', $list1[ $_[0] ], $list2[ $_[1] ], $list3[ $_[2] ], } ( 3 ) x 3;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Generating lists of strings
by ikegami (Patriarch) on Jan 25, 2010 at 02:54 UTC | |
by BrowserUk (Patriarch) on Jan 25, 2010 at 03:07 UTC | |
by ikegami (Patriarch) on Jan 25, 2010 at 03:11 UTC |