Link to home
Start Free TrialLog in
Avatar of Priyanka R
Priyanka R

asked on

I can't run perl script in browser on ubuntu

This is my program

Example.html
<html>
<body>
<form action="/cgi-bin/time.pl">
<input type="submit"/>
</form>
</body>
</html>
And my perl script "time.pl"
#!/usr/bin/perl
print "content-type:text/plain\n";
use CGI': standard';
($sec,$min,$hr)=localtime(time);
print "$hr:$min:$sec";

Open in new window


If i run example.html in server it shows file not found
ASKER CERTIFIED SOLUTION
Avatar of David Favor
David Favor
Flag of United States of America image

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
Avatar of Henry Law
Henry Law

Wonder if the OP has fixed the problem?  If I understand EE's message display David commented (with good advice) nearly a week ago.
Accepting my answer.

Poster has stopped posting.