in reply to Python tricks
Personal choice, but I would swap out the C-ish loop from V:
my @list1 = qw/a b c d/; my @list2 = qw/p q r s/; for (0 .. $#list1) { say "$list1[$_] $list2[$_]"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Python tricks
by pme (Monsignor) on Dec 18, 2018 at 15:05 UTC | |
by xiaoyafeng (Deacon) on Dec 19, 2018 at 07:21 UTC | |
by syphilis (Archbishop) on Dec 19, 2018 at 07:37 UTC | |
by pme (Monsignor) on Dec 19, 2018 at 08:29 UTC |