UNIX::Cal

Perl wrapper for the original cal UNIX command line tool
Download

UNIX::Cal Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Piers Harding
  • Publisher web site:
  • http://search.cpan.org/~piers/sapnwrfc-0.17/sapnwrfc.pm

UNIX::Cal Tags


UNIX::Cal Description

Perl wrapper for the original cal UNIX command line tool UNIX::Cal is a Perl wrapper for the original cal UNIX command line tool.SYNOPSIS use Data::Dumper; use UNIX::Cal; use UNIX::Cal qw(monday julian year); print Dumper(cal());UNIX::Cal is an implementation of good ol' UNIX command line cal.It is really paying homage to the original code from The Regents of the University of California and Berkeley by Kim Letkeman.As with UNIX cal, you can specify the switches to change the behaviouruse UNIX::Cal qw(monday); give the -m switch effect. -m = monday - set monday as the first day of the week -j = julian - generate the days in julian format -y = year - automatically create a years calendarThere is only one method - cal(). This method is pushed into the calling packages namespace, so it doesn't need to be fully qualified. cal() is called in three forms: cal(); - no arguments gives the current month unless -y was specified. cal(5, 2002); - returns the calendar for May, 2002. cal(2002); - returns the calendar ( each month ) for 2002.The result of the cal() method is an array ref.For a single months results: $VAR1 = , , , , , , ];The results for a year are like so: $VAR1 = , , , , , , , ], , , , , , , ], ................... Requirements: · Perl


UNIX::Cal Related Software