LINUX CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>

7-DAY TOP DOWNLOAD

#
Program
BackTrack 4 Final
9,178
TeamSpeak 2
2.0.32.60

3,920
Wine 1.0.1 / 1.1.38
3,273
VLC 1.0.5
3,185
Charles Web
Debugging Proxy
3.5.1

2,387
Yahoo Messenger
1.0.4

2,346
Adobe Flash Player
for Linux 10.0.42.34
/ 10.1 Beta

1,778
Ubuntu 9.10
1,698
Thunderbird PST
Import plugin 1.2

1,644
Corel Photo-Paint 9
1,492

WEEK'S BEST

  • Ubuntu 9.10
  • Ubuntu Netbook Rem...
  • Pidgin 2.6.5
  • Wine 1.0.1 / 1.1.38
  • Linux Kernel 2.6.3...
  • Mozilla Firefox 3.6
  • Fedora 12
  • OpenOffice.org 3.2.0
  • Firestarter 1.0.3
  • The Gimp 2.6.8 / 2...
  • FileZilla 3.3.1
  • Transmission 1.83
  • Super Grub Disk 0....
  • Gufw 9.10.4
  • Skype 2.0.072 / 2....
  • openSUSE Linux 11....
  • Opera 10.50 Build ...
  • Adobe Flash Player...
  • wine-doors 0.1.3
  • Google Gadgets 0.1...
  • Home / Linux / Programming / Perl Modules

    UNIX::Cal 0.01

    Download button

    No screenshots available
    Downloads: 137  Add to download basket  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Piers Harding | More programs
    Perl Artistic License / FREE
    March 7th, 2009, 19:18 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Add a review  Refer to a friend  Subscribe

     

    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 behaviour

    use 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 calendar


    There 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 = [ [ 'May', 2002 ], [ 'Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa' ], [ '', '', '', 1, 2, 3, 4 ], [ 5, 6, 7, 8, 9, 10, 11 ], [ 12, 13, 14, 15, 16, 17, 18 ], [ 19, 20, 21, 22, 23, 24, 25 ], [ 26, 27, 28, 29, 30, 31, '' ] ];

    The results for a year are like so: $VAR1 = [ [ 2002 ], [ [ 'January', 2002 ], [ 'Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa' ], [ '', '', 1, 2, 3, 4, 5 ], [ 6, 7, 8, 9, 10, 11, 12 ], [ 13, 14, 15, 16, 17, 18, 19 ], [ 20, 21, 22, 23, 24, 25, 26 ], [ 27, 28, 29, 30, 31, '', '' ] ], [ [ 'February', 2002 ], [ 'Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa' ], [ '', '', '', '', '', 1, 2 ], [ 3, 4, 5, 6, 7, 8, 9 ], [ 10, 11, 12, 13, 14, 15, 16 ], [ 17, 18, 19, 20, 21, 22, 23 ], [ 24, 25, 26, 27, 28, '', '' ] ], ...................

    Requirements:

    · Perl

      


    TAGS:

    cal wrapper | Perl module | Perl wrapper | Perl | cal | wrapper



    HTML code for linking to this page:


    Go to top

    Windows tabGames tabDrivers tabMac tabLinux tabScripts tabMobile tabHandheld tabGadgets tabNews tab

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   ENTER NEWS SITE   |   ENGLISH BOARD   |   ROMANIAN FORUM