in reply to Loop through epoch days

try this
for (my $i=1135202400; $i <= 1188252000; $i+=86400) { print ">$i<\n"; }

LuCa

Replies are listed 'Best First'.
Re^2: Loop through epoch days
by Scrat (Monk) on Sep 27, 2007 at 10:57 UTC

    Thanks LuCa, That's exactly what I was looking for.

    Cheers
      Scrat, you can't assign using an idiom similar to pre/post increment/decrement. Also the code, the code that goes between the semi-colons is not limited to the traditional (my $i=0; $i<$X; $i++), although I am pretty sure that the middle code segment (;$i<$X;) must evaluate to true or false in some form because it is the stopping condition.

      And while we're throwing around our favorite date modules, I like Date::Pcalc.