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:
Giving up-can't make any progress whatsoever

 



waherne
Novice

Feb 19, 2000, 2:24 PM

Post #1 of 4 (756 views)
Giving up-can't make any progress whatsoever Can't Post

Hi,

I am in serious trouble here.

Activestate Perl will not work on my W95 computer.

When I open a cgi or pl file (to print text to the browser), perl simply runs in the background, nothing prints (despite the code being correct) and the perl window vanishes when the program is complete so I cant see the error messages (if any).

What is wrong with my browser?

This is my third week trying to sort this out and I am so close to giving up Perl altogether, Please help.

Willie


perlkid
stranger

Feb 19, 2000, 6:18 PM

Post #2 of 4 (756 views)
Re: Giving up-can't make any progress whatsoever [In reply to] Can't Post

 
I don't use perl on a windows platform but I know that the path to the perl on any windows/nt platform has to be directly to the bin where the perl is kept on the hard drive. Like #!c:/bin/to/perl/sourcecode
at the top of your perl program, or maybe it doesn't need to have the #!, and I think you need to have a .pl extention for windows instead of a .cgi for unix.

perlkid


kencl
User

Feb 21, 2000, 12:07 AM

Post #3 of 4 (756 views)
Re: Giving up-can't make any progress whatsoever [In reply to] Can't Post

Bring up a console window and work from there. Goto Start, Program Files, MS-DOS Prompt. You then need to navigate to the directory your perl script is in, then type "perl scriptname.pl".

What's happening is that your perl script is printing to the terminal then closing.

As for how to get it to pipe the output to a browser, someone else will have to help you there. I use Linux where I run a web server which supports CGI's.

Good luck, and don't give up yet. Perl is a powerful language, and you'll love it once you've gotten over some of these initial hurdles.

>> Ken



brian.hayes
User

Feb 21, 2000, 3:57 AM

Post #4 of 4 (756 views)
Re: Giving up-can't make any progress whatsoever [In reply to] Can't Post

Hello,

What type of web server are you runnin? Most including Apache for Linux require that you tell it what type of extention to use for scripts. If you are using IIS it is not well documented on how to go about setting this up.

Let me know.

Brian Hayes

 
 


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

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