in reply to Script to display dates between range
You can you this following code for print the date between the
range
Thu Mar 11 18:39:56 IST 2010
Fri Mar 12 18:39:56 IST 2010
Sat Mar 13 18:39:56 IST 2010
Sun Mar 14 18:39:56 IST 2010
Mon Mar 15 18:39:56 IST 2010
--sugumar--
Output:use strict; use warnings; my $command; foreach(1..5) { $command = "date -d \"+ $_ day\""; system ("$command"); }
Thu Mar 11 18:39:56 IST 2010
Fri Mar 12 18:39:56 IST 2010
Sat Mar 13 18:39:56 IST 2010
Sun Mar 14 18:39:56 IST 2010
Mon Mar 15 18:39:56 IST 2010
--sugumar--
In Section
Seekers of Perl Wisdom