Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Why does it output 23 hours:#!/usr/bin/perl use Modern::Perl; my @f = qw(9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 0 1 2 3 4 5 7 8 +); foreach my $f (@f){ my $x = ($f-5)%24; say $x; }
And not 24? Where's the 1????? Or at least a blank newline?4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 0 2 3
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Convet UTC to Eastern Time Zone
by awohld (Hermit) on Nov 27, 2013 at 00:30 UTC | |
by taint (Chaplain) on Nov 27, 2013 at 02:18 UTC | |
|
Re: Convet UTC to Eastern Time Zone
by Laurent_R (Canon) on Nov 27, 2013 at 07:20 UTC |