[Chicago-talk] get array element from a function return
imranjj at gmail.com
Fri Dec 3 12:06:30 PST 2010
perl -le 'print qw(Sun Mon Tue Wed Thu Fri Sat)[(localtime)]'
On Fri, Dec 3, 2010 at 1:59 PM, tiger peng <tigerpeng2001 at yahoo.com> wrote:
> To get the weekday name of current day in Perl, I am using some thing like
> below. I do not like so many punctuation marks. Can it be simpler?
> perl -le 'print [("Sun", "Mon", "Tue", "Wed", "Thu", "Fri",
> Chicago-talk mailing list
> Chicago-talk at pm.org
More information about the Chicago-talk