I downloaded the first version that you posted and it "worked for me" so I am unsure why it isn't working for you.
$ perl 976706.pl Hello Jesse. The time is: Sun Jun 17 18:56:19 2012
For the printing the date in nearly any format you want you can use the DateTime module.
$ perl -MDateTime -E 'say DateTime->now->strftime("%Y-%m-%d %H:%M:%S") +' 2012-06-18 01:58:52
In reply to Re: Please help me with this Heredoc
by afresh1
in thread [SOLVEDish] Please help me with this Heredoc
by Je55eah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |