×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Is it possible to code perl script inside HTML?

Is it possible to code perl script inside HTML?

Is it possible to code perl script inside HTML?

(OP)
Hi all,
  COuld you suggest me whether it is possible to code perl scripts inside HTML? The file extension will be .html
Thanks.
RCSEN

RE: Is it possible to code perl script inside HTML?

Yes it is, have a look on www.activestate.com, download the current version of Perl and you'll find references to it in the documentation. Can't remember exactly how to get to it, and it's a home and I'm in the office, but it wasn't hard to find.


Mike
michael.j.lacey@ntlworld.com

RE: Is it possible to code perl script inside HTML?

You may want to check out Mason, the first release is now available.

http://www.masonhq.com

looks very nice, but need to incorporate it into the server.
Ben

RE: Is it possible to code perl script inside HTML?

If you want to get into some basic Perl, try PerlScript. Its just like JavaScript <script language=perlscript> but functions like perl.

Hope this helps,

-Vic

vic cherubini
vikter@epicsoftware.com
www.epicsoftware.com
====
Knows: Perl, HTML, JavScript, C/C++, PHP, Flash, Director
====

RE: Is it possible to code perl script inside HTML?

i think id you use apache with mod_perl you can embed perl code in html also. i think you just need to set it up for .phtml files

adam@aauser.com

RE: Is it possible to code perl script inside HTML?

(OP)
I don't have permission  to install any modules. I tried using perlscript. But I don't know how to call an URL in perlscript function. Could you suggest me?
Thanks
RCSEN

RE: Is it possible to code perl script inside HTML?

(OP)
<head>
<script language = perlscript>
sub callperl()
 {
  my $URL = REMOTE_ADDR('Some URL');
 LWP::UserAgent:: redirect($URL);
}
</script>
</head>

<body onLoad=callperl();>

The perl integration was successful.
</body>

</html>

This is my sample code.
RCSEN

RE: Is it possible to code perl script inside HTML?

or:

<%@Language=PerlScript%>
<%
$Response->Redirect('url');
%>

this is asp, so, you'll have to use the asp extension.

the <script language=perlscript> is for client-side scripting... unless you have runat=Server in it as well.

adam@aauser.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close