We don't bite newbies here... much | |
PerlMonks |
Re: Segmentation faultby Utilitarian (Vicar) |
on Feb 08, 2012 at 13:44 UTC ( [id://952501]=note: print w/replies, xml ) | Need Help?? |
Your copy of the @vals array may be copying an undefined value so perhaps you should check the values before setting them in the new array.
print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."
In Section
Seekers of Perl Wisdom
|
|