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:
test perl on local pc?

 



ijsman
Novice

Aug 15, 2002, 7:00 AM

Post #1 of 6 (751 views)
test perl on local pc? Can't Post

Can this be done? I have perl on my computer, i can run scripts in dos just fine, but when i use them in my webpages, they don't work!

on our server i don't have any problems. but i also want to test them locally from time to time.



what's the way to do his??


Jean
User


Aug 15, 2002, 7:40 AM

Post #2 of 6 (747 views)
Re: [ijsman] test perl on local pc? [In reply to] Can't Post

It can be done (even relatively easily).
I'd advise to install the same OS and web server as the ones you're using on your production server.


Jean Spector
SQA Engineer @ Exanet
jean.spector@softhome.net


There are only 10 types of people in the world -
Those who understand binary, and those who don't.


ijsman
Novice

Aug 15, 2002, 7:44 AM

Post #3 of 6 (745 views)
Re: [Jean] test perl on local pc? [In reply to] Can't Post

that's not what I meant, we have a test and a live server, i can upload my stuff there and the perl scripts execute fine from within my html pages

from my W2K machine I can also create scripts and execute them in DOS, but in my browser this is not possible. Why is that? should I include a shebang? (I thought they were for unix only).


Melvosh
User

Aug 15, 2002, 7:48 AM

Post #4 of 6 (745 views)
Re: [ijsman] test perl on local pc? [In reply to] Can't Post

You need to have a web server running on your pc. If this is something you definitely want to do, then I'd suggest installing the exact same web server that you have on your test and production servers. If your test and production servers are not Win2k, then you may run into certain problems with your scripts, but I'm honestly not sure. But you definitely need a web server running to test perl scripts in a browser.
"...there's some good in this world, Mr. Frodo, and it's worth fighting for." - Samwise Gamgee, The Two Towers


Jean
User


Aug 15, 2002, 7:56 AM

Post #5 of 6 (742 views)
Re: [ijsman] test perl on local pc? [In reply to] Can't Post

1. I agree with Melvosh - you definitely need the web server in order to run the scripts from your browser.
2. Another option is that you're trying to run the scripts from command line - in this case you need to run perl scriptname.pl or make sure the .pl extension is associated with the perl interpreter (no shebangs in DOS except when using Apache w/o registry assocs).


Jean Spector
SQA Engineer @ Exanet
jean.spector@softhome.net


There are only 10 types of people in the world -
Those who understand binary, and those who don't.


(This post was edited by Jean on Aug 15, 2002, 7:57 AM)


SaiyanM
User

Aug 25, 2002, 5:06 PM

Post #6 of 6 (727 views)
Re: [Jean] test perl on local pc? [In reply to] Can't Post

if u want a small webserver that nice and quick...

http://download.com.com/redir?pid=10120728&merid=87156&mfgid=87156&ltype=dl_dlnow&lop=link&edId=3&siteId=4&oId=3000-2165-10120728&ontId=2165&destUrl=%2F3001-2165-10120728.html



the name of it is BRS Webweaver, and it works great (for me atleast), u can also setup a ftp server with this...

-------------
Whats 2 + 2 x 2?
Its not 8...
(Please Excuse My Dear Aunt Sally)...

 
 


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

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