in reply to Print Interval Instead of Timestamp
Would a loop work?
#!/usr/bin/perl use strict; use warnings; my $hour = 0; my @mins = ('00','05','10','15','20','25','30','35','40','45','50','55 +'); for my $hour (0..23){ for (1..12 ){ print $hour.':'.$mins[0],"\n"; push (@mins,shift(@mins)); #go round the clock } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Print Interval Instead of Timestamp
by frozenwithjoy (Priest) on Jul 06, 2012 at 16:29 UTC |