Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Script to display dates between range

by ungalnanban (Pilgrim)
on Mar 10, 2010 at 13:12 UTC ( #827784=note: print w/ replies, xml ) Need Help??


in reply to Script to display dates between range

You can you this following code for print the date between the range
use strict; use warnings; my $command; foreach(1..5) { $command = "date -d \"+ $_ day\""; system ("$command"); }
Output:
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--


Comment on Re: Script to display dates between range
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://827784]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2015-07-07 10:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls