craigt has asked for the wisdom of the Perl Monks concerning the following question:

I have 3 questions.

1) I'm having trouble coming up under perlrun. I'm on a Windows XP Home platform running Apache/2.0.49 (Win32) PHP/5.1.4 mod_perl/2.0.2 Perl/v5.8.3.

The entry page comes up fine. The first link I try (any link) works fine. All links after the first fail. I have confirmed that no parameters get passed to these programs that fail. I'm getting no errors in the Apache log except 1 indicating no data came through to the failing program. I have to stop and restart Apache to make any other link to work. And again, all subsequent links fail. Following are 2 links I just tested. Is it invalid to pass parameters this way under Perl Run?
<A CLASS='l2' HREF='ss.cgi?ssstr=$govlevel' ONMOUSEOVER=\"window.statu +s='Sights And Sounds Of $glines[0]';return true\" ONMOUSEOUT=\"window +.status=' ';return true\">Sights/Sounds</A> <A CLASS='l2' HREF='vumenu.cgi?vmstr=$govlevel~$vufiles' ONMOUSEOVER=\ +"window.status='Special Interest, Measure Views';return true\" ONMOUS +EOUT=\"window.status=' ';return true\">Special Views</A>
All function works correctly under cgi-bin. All subroutines are stand-alone objects. My Apache httpd entry for perl-run follows.

PerlModule ModPerl::PerlRun Alias /perl-run/ "/usr/www/steepusa/cgi-bin/" <Location /perl-run> PerlSetVar PerlRunOnce On SetHandler perl-script PerlResponseHandler ModPerl::PerlRun PerlOptions +ParseHeaders Options +ExecCGI </Location>
I'm not sure what to do next. I'm sort of in the in between programs place.

2) I have not been able to load .JScript files from any location into my Perl scripts in the cgi-bin directory. I can in my root. Does this require an httpd adjustment?

3) I am have trouble opening .tar.gz files. I've never been able to open one. The name gets changed on the download and I can't seem to find the right name. I use WinZip which is supposed to be able to read these files.



Replies are listed 'Best First'.
Re: Page Isn't Working Right Under PerlRun And 2 More Questions
by eric256 (Parson) on Nov 19, 2007 at 15:56 UTC

    Well 2 and 3 aren't even remotely perl, 2 is an Apache question, and 3 is just a weird question.

    As for your first question, your two links go to two seperate perl scripts so its hard to know if that is your problem, maybe that second script doesn't work at all? What happens if you try the same exact link twice? Or If you try that second link first?

    Eric Hodges

      Regardless of which link I try first, all subsequent links fail. That first link does keeps working. And any link I execute first works under PerlRun. But all other links fail after I pick a first and execute it. I have to stop and restart Apache to pick another link and have it work. And all function including all links work correctly under CGI. I hope I'm communicating OK.

      I included the 2nd question, because I was hoping that maybe someone might know what is necessary under Apache to load Javascript code into a Perl script rersiding in the CGI directory. I was thinking that this is a common task in Perl.

      I asked the 3rd question about the TAR file because I'm trying to look at the Dojo stuff. I guess I was hoping for a pointer on how to unpack a TAR file on a Windows platform.

      I apologize for asking inappropriate questions.

        I've downloaded tgz files from some sites & have had to rename them to a .zip in order for winzip (on my XP box) to be able to access them.
        In one case, the final extension (tgz) just had to be dropped, & it worked.