in reply to remote perlscript

I don't understand what you mean when you say this script "seems to work for me locally on my computer - from within a .htm file." (I've never heard of a perl script that works "from within a .htm file".) Also, you left out the part of your code that shows us what sort of object your "$window" is. Where is that coming from, and what is it?

In any case, I think part of the problem may be that you never seem to print an http header or an initial  <html> tag.

Have you considered using the CGI module? The documentation for that is pretty long, but it is pretty well organized, and you should be able to figure things out pretty quickly. It will help you to write code that is more coherent and easier to fix and maintain.

For example, your script could start with:

use strict; use CGI qw/standard/; print header, start_html( 'This is a test' ), h2( 'Hi.' ), h2( 'Here is a try using Perl/CGI.' ); # and so on...

Replies are listed 'Best First'.
Re^2: remote perlscript
by Anonymous Monk on Jan 21, 2007 at 18:47 UTC
    Thanks guys - that is a lot to think about for me. I though I could just add the # line at the top - with a path to some web based perl interperater or something and it would then work.

    For graff: I use frontpage - and from within it I can insert a script, and yes much of the above did work locally for me. I can't remember how I got it to work though, because I only just found one of my old files that was displaying the time, and added the env displaying - and it too worked so I thought I was getting somewhere.

    thanks again guys