Perl Monk, Perl Meditation | |
PerlMonks |
Re: File dateby Utilitarian (Vicar) |
on Sep 19, 2014 at 08:25 UTC ( [id://1101169]=note: print w/replies, xml ) | Need Help?? |
You're expecting the core stat rather than the module File::stat which overrides the core function. Don't import the module (try replacing with use strict instead ;) ) and it should work.
print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."
In Section
Seekers of Perl Wisdom
|
|