Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Calendar print outs

by drock (Beadle)
on Dec 20, 2004 at 18:12 UTC ( #416262=perlquestion: print w/replies, xml ) Need Help??

drock has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: calendar print outs
by cchampion (Curate) on Dec 20, 2004 at 18:18 UTC

    Not a module, but what about this?

    perl -e 'system "cal $_" for 2000..2099'

    Alternatively, you may try Calendar::Simple.

    P.S. s/calander/calendar/

    Update
    Actually, the 21st century should be 2001..2100. Your request about 2000-2999 covers most of the third millennium (2001-3000).

      Maybe he wants colander print outs for the next 100 years, although that might produce a large strain on his system . . .

      Update: And possibly of use to the original querent, PPT implementations of cal.

      ok here is what I have
      for (2005..2006) { system ("cal $_ > /tmp/file"); }
      But how would I get this for individual months for instance in KSH for year in 2004 2005 2006 do for month in 1 2 3 4 5 6 7 8 9 10 11 12 do cal $year/$month
        perl -e 'for $y (2005..2006) {for $m (1..12) {system "cal $m $y"}}' \ > /tmp/file
Re: Calendar print outs
by csuhockey3 (Curate) on Dec 21, 2004 at 00:51 UTC
Re: Calendar print outs
by PodMaster (Abbot) on Dec 21, 2004 at 13:14 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://416262]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2023-02-04 21:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (31 votes). Check out past polls.

    Notices?