By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,852 Members | 1,426 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,852 IT Pros & Developers. It's quick & easy.

Very begining problem in perl

P: 2
I'm trying use perl code in a html page, I wrote it in goddyear.html

Expand|Select|Wrap|Line Numbers
  1. <html>
  2.  
  3. <%@ language="PerlScript" %>
  4.  
  5. <%
  6.   print "Hello, good year" ;
  7.  
  8. %>
  9.  
  10. </html>
when I run that page nothing happens; no message, no error

What I do bad?

Thanks
Mar 27 '08 #1
Share this Question
Share on Google+
4 Replies


KevinADC
Expert 2.5K+
P: 4,059
Are you running that code on a server that supports it? As far as I know only Windows servers support ActiveX Scripting.
Mar 27 '08 #2

P: 2
I'm running the script on a free server supporting perl-cgi scripts ( 000webhost.com)

Is the code in the html page correct ?
Mar 28 '08 #3

numberwhun
Expert Mod 2.5K+
P: 3,503
I'm running the script on a free server supporting perl-cgi scripts ( 000webhost.com)

Is the code in the html page correct ?
First, you cannot embed Perl code into html and expect it to run as CGI. They way you are doing it is not standard Perl but something along the lines of what Kevin mentioned.

What you want to do is read a tutorial on CGI to get you going. Perl is always a script that runs either seperate from the html or that produces the html (in the case of cgi.). I haven't seen the example you gave before and would not know anything about "perlscript". It sounds like something that Microsoft came up with. Either way, read the tutorial.

Regards,

Jeff
Mar 28 '08 #4

KevinADC
Expert 2.5K+
P: 4,059
I'm running the script on a free server supporting perl-cgi scripts ( 000webhost.com)

Is the code in the html page correct ?
I doubt you can run perlscript, so it does not matter if the code you posted is correct. But the code looks correct, it just will not work because that technology is not going to be supported by that host.
Mar 28 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.