Link to home
Start Free TrialLog in
Avatar of saurav
saurav

asked on

Including "date" in cgi file(perl)

Hi,
In my test.pl file I have included "date" variable:

$mydate=`date`
print "$mydate\n";

But while I run test.pl from MS/DOS, the perl program outputs today's date after i "enter twice" after typing test.pl !!
Also when I include the above two lines in my .cgi script(perl), today's date does not show up!

saurav
Avatar of ozo
ozo
Flag of United States of America image

$mydate=localtime;
ASKER CERTIFIED SOLUTION
Avatar of wilfrieds
wilfrieds

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial