use POSIX 'strftime'; print strftime "%m" => localtime;
Or you could keep it simple and do
print +(qw /Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec/)[$mon +]
Abigail
In reply to Re: Replacing $mon with Jan, Feb, Mar by regex or other means
by Abigail-II
in thread Replacing $mon with Jan, Feb, Mar by regex or other means
by jonnyfolk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |