MacResource
Easy Perl troubleshooting - now solved! Never mind! - Printable Version

+- MacResource (https://forums.macresource.com)
+-- Forum: My Category (https://forums.macresource.com/forumdisplay.php?fid=1)
+--- Forum: Tips and Deals (https://forums.macresource.com/forumdisplay.php?fid=3)
+--- Thread: Easy Perl troubleshooting - now solved! Never mind! (/showthread.php?tid=11297)



Easy Perl troubleshooting - now solved! Never mind! - Greg the dogsitter - 05-14-2006

What's wrong with...

----------------
use Time::Local;

use strict; use warnings;

print "\n";

#determine both start and end dates for import
my $dt = timelocal(0,0,0,1,0,106); #1/1/2006
my $dtEnd = time();

While ($dt <= $dtEnd) {
print $dt;
$dt += (60*60*24);
};
----------------



Re: Easy Perl troubleshooting - solved - Greg the dogsitter - 05-14-2006

Got it; "while" can't be capitalized.

Sorry; used to VBA in Excel. :-)