CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Converting a perl script into html

 



Akki
New User

Jul 23, 2015, 10:49 PM

Post #1 of 8 (3939 views)
Converting a perl script into html Can't Post

Greetings,

I have a perl script which executes on server side. I need to switch it to html script. How can I convert Perl script into HTML? Do I need to convert all code, line by line, in HTML or is there something which I can use?

Thanks in advance!!


Laurent_R
Veteran / Moderator

Jul 24, 2015, 2:29 AM

Post #2 of 8 (3934 views)
Re: [Akki] Converting a perl script into html [In reply to] Can't Post

Hi,
not sure to understand what you are trying to do. Could give an example?


Akki
New User

Jul 24, 2015, 11:41 AM

Post #3 of 8 (3913 views)
Re: [Laurent_R] Converting a perl script into html [In reply to] Can't Post

Hi,

I have a perl script in my product environment which is working fine as expected. However we are asked to remove all perl scripts, so I want to replace my perl script with HTML script which should perform same job which my current perl is doing. So I am looking if is there any utility which I can use instead of re-writing script in HTML.

Thank you!


FishMonger
Veteran / Moderator

Jul 24, 2015, 12:16 PM

Post #4 of 8 (3907 views)
Re: [Akki] Converting a perl script into html [In reply to] Can't Post

The is no conversion/translation utility.

Unless the perl script is only spitting out raw html and not doing anything else, a straight conversion to html will not be possible.

Why do they want you to remove all perl scripts?


FishMonger
Veteran / Moderator

Jul 24, 2015, 12:21 PM

Post #5 of 8 (3904 views)
Re: [Akki] Converting a perl script into html [In reply to] Can't Post

Can you post your perl script?


Akki
New User

Jul 24, 2015, 12:45 PM

Post #6 of 8 (3901 views)
Re: [FishMonger] Converting a perl script into html [In reply to] Can't Post

Hi,

My script first includes other perl script, which has all variables, arrays, function, javascriptBlock etc.
Main script reads some environment variables, arrays etc. and prints them on log file. It also reads env. variable, print values of array and calls HTML page in the end.

Thanks!!


FishMonger
Veteran / Moderator

Jul 24, 2015, 12:58 PM

Post #7 of 8 (3898 views)
Re: [Akki] Converting a perl script into html [In reply to] Can't Post

If you're not allowed to use perl, then you'll need to convert them to php or ruby, or python, or any other scripting language your employer allows. HTML is not a server side scripting language, so attempting to convert your perl scripts to html won't work and will be a waste of time.


Akki
New User

Jul 28, 2015, 3:46 PM

Post #8 of 8 (3508 views)
Re: [FishMonger] Converting a perl script into html [In reply to] Can't Post

Ok, Thank you all for replies Smile. I'll get back if I need anything related to this.

Regards!

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives