Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re^2: convert month number to month name

by dsheroh (Prior)
on Aug 30, 2012 at 09:59 UTC ( #990704=note: print w/replies, xml ) Need Help??

in reply to Re: convert month number to month name
in thread convert month number to month name

I'm not seeing the point of using a hash here... Since the hash keys are a contiguous, zero-based range of integers, why not just use an array instead of making a hash behave like one?
my @month_name = qw(Jan Feb Mar Apr May Jun Jul Aug Sept Oct Nov Dec); my ( $day, $month, $year ) = (localtime)[ 3, 4, 5 ]; $year = $year + 1900; print join " ", $day, $month_name[$month], $year;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://990704]
Discipulus ignores..
Discipulus IE just maps to id est in my mind .. ;=)
[Corion]: marto: I believe nowadays, at least window.opener should not be set anymore (except maybe within the same domain)
[Corion]: But I wouldn't really know as I don't use iexplore much (except at $work) and mostly surf with JS disabled (except at $work :) )

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2018-03-21 11:43 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (267 votes). Check out past polls.