We don't bite newbies here... much | |
PerlMonks |
Re: Use scalars to define a filenameby Utilitarian (Vicar) |
on Oct 17, 2011 at 14:13 UTC ( [id://931934]=note: print w/replies, xml ) | Need Help?? |
The underscore is a legitimate character in a variable name,so you'll have to create to the file in one of the following ways
Or one a a myriad others
print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."
In Section
Seekers of Perl Wisdom
|
|