Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Sorting Dates Issueby Utilitarian (Vicar) |
on Aug 18, 2010 at 15:47 UTC ( [id://855829]=note: print w/replies, xml ) | Need Help?? |
You claim this is your code:
However there are no default variables $c or $d so your code would not run. The fact that you assign the two compound numbers to the same variable may be your issue, use warnings; would have noted this.
print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."
In Section
Seekers of Perl Wisdom
|
|