Print Date

I would like to print the date where it says print "<tr><td width=\"10%\">$date</td>  in this code
how can I do that ??

use CGI;
use CGI::Carp qw(fatalsToBrowser);

my $q = new CGI;
use LWP::Simple;
die "$user User ID invalid\n" if /<h2>User ID invalid<\/h2>/;
print $q->header;
print $q->start_html('eBay Feedback Management For $user');
       print "<div align=\"center\"><center>";
       print "<table border=\"1\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"90%\" id=\"AutoNumber1\">\n";

while( m#<tr.*?/eBayISAPI\.dll\?ViewFeedback&amp;userid=(.*?)">.*?(?:<td valign="top"><span class="help">(\d+)</span></td>|item=(\d+).*?</tr>)#gs ){
       $item{$2||$3} = $1;
       #print "recieved $2$3 $1\n";
while( m#<tr.*?/eBayISAPI\.dll\?ViewFeedback&amp;userid=(.*?)">.*?(?:<td valign="top"><span class="help">(\d+)</span></td>|item=(\d+).*?</tr>)#gs ){
       #print "left  $2$3 $1\n";

       print "<tr><td width=\"10%\">$date</td><td width=\"40%\"><b>$1</b> needs feedback for item <b>$2$3</b></td><td width=\40%\">click <a href=\"$2$3&redirect=0&requested=$1\">here</a> to ask for feedback<br>\n" unless $item{$2||$3};
       print "</td></tr></table>\n";
       print "</center></div>";
print $q->end_html;
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

print qq{<tr><td width="10%">}.(localtime).qq{</td><td width="40%"><b>$1</b> needs feedback for item <b>$2$3</b></td><td width="40%">click <a href="$2$3&redirect=0&requested=$1">here</a> to ask for feedback<br>\n} unless $item{$2||$3};
#sorry, I think you wanted the date from the eBay listing:
while( m#<tr.*?/eBayISAPI\.dll\?ViewFeedback&amp;userid=(.*?)">.*?\b(\w{3}-\d\d-\d\d\s+\d\d:\d\d).*?(?:<td valign="top"><span class="help">(\d+)</span></td>|item=(\d+).*?</tr>)#gs ){
       print qq(<tr><td width="10%">$2</td><td width="40%"><b>$1</b> needs feedback for item <b>$3$4</b></td><td width=40%">click <a href="$2$3&redirect=0&requested=$1">here</a> to ask for feedback<br>\n) unless $item{$3||$4};

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Scripting Languages

From novice to tech pro — start learning today.