http://www.perlmonks.org?node_id=990671


in reply to convert month number to month name

Isn't there any perl built in function which can do the work, like there is strftime function which can do the work.

Replies are listed 'Best First'.
Re^2: convert month number to month name
by johngg (Canon) on Aug 30, 2012 at 08:12 UTC

    POSIX is a core module so strftime() is available without the need to install any modules from CPAN.

    $ perl -E ' > use POSIX qw{ strftime }; > say strftime q{%b}, localtime( time() );' Aug $

    Cheers,

    JohnGG