xorl has asked for the wisdom of the Perl Monks concerning the following question: ⭐ (dates and times)
I'm sure this is a dumb question, but I can't seem to
find the answer.
I have a variable that contains a month name i.e. "October"
I want to change that to the number i.e. "10". Is there an easy
way of doing this. My only thought was
Thanks!
but this seems rather long and tedious.if ($var eq "January") { $var=1; } elsif ($var eq "Feburary") ...
Thanks!
Originally posted as a Categorized Question.
Back to
Seekers of Perl Wisdom