in reply to How to iterate thru entire array with start point other than beginning
#!/usr/bin/perl -l # http://perlmonks.org/?node_id=1170987 use strict; use warnings; my @month_name = qw(January February March April May June July August +September October November December); for my $start (0 .. 11) { my @wanted = (@month_name, @month_name)[$start .. $start + 11]; print "@wanted"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to iterate thru entire array with start point other than beginning
by dirtdog (Monk) on Sep 01, 2016 at 18:21 UTC | |
by hippo (Archbishop) on Sep 01, 2016 at 21:06 UTC | |
by dirtdog (Monk) on Sep 02, 2016 at 00:40 UTC | |
by dirtdog (Monk) on Sep 01, 2016 at 19:36 UTC | |
by planetscape (Chancellor) on Sep 02, 2016 at 15:48 UTC |