Results 1 to 16 of 16

Thread: How to test Perl scripts

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2001
    Posts
    37

    Question How to test Perl scripts

    I am a beginner in Perl. How I am going to test my Perl scripts to ensure that they are working as expected? Do I need some kind of a webserver? If I do, what server should I use?

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    You can do a quick syntax check at the command prompt or shell with:
    perl -c myscript.pl

    To run a script:
    perl myscript.pl

    If you're going to use the scripts for CGI, you'll need a web server. I had no problems running Perl on IIS/Win2K or Apache/Red Hat Linux.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  3. #3
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    If you don't have NT/2000, get Apache and run it on 9x (www.apache.org). www.activestate.com has ActivePerl which is a doddle to install.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  4. #4

    Thread Starter
    Member
    Join Date
    Mar 2001
    Posts
    37

    Question Apache server

    Originally posted by parksie
    If you don't have NT/2000, get Apache and run it on 9x (www.apache.org). www.activestate.com has ActivePerl which is a doddle to install.
    What version of the Apache HTTP server should I download?

  5. #5
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    The latest for Win32 which can be found here: http://httpd.apache.org/docs/windows.html (1.3.20 at the moment)

    I wouldn't suggest using the beta just yet
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  6. #6

    Thread Starter
    Member
    Join Date
    Mar 2001
    Posts
    37

    Question Apache server

    Will the Apache server work with my Windows 98 operating system?

  7. #7
    denniswrenn
    Guest
    Yes it will, although, there are some security holes that aren't present in the *Nix version. But that's to be expected with such an inferior product(I'm talkin' 'bout Windows, not Apache )

  8. #8
    scoutt
    Guest
    I run Apache on my win98se and since I am not online at teh time I don't worry about security, since I am the only one using it. once I get my scripts how I like them and they "work" then I quit Apache and MySql and then get on line to upload them to the site. Takes away a lot of headaches doing it this way and I don't have to worry about filling up my log files on my ISP server.

    I should have thought about doing this a long time ago,

  9. #9

    Thread Starter
    Member
    Join Date
    Mar 2001
    Posts
    37

    Unhappy downloading apache server

    exactly which file from apache's site do I download? I clicked on apache server and the download link and the page displays several files. What is the filename of the apache server that I have to download?

  10. #10

  11. #11
    Fanatic Member ubunreal69's Avatar
    Join Date
    Apr 2001
    Location
    Morayfield, Australia
    Posts
    609
    hey val04, where did you get your copy of pearl ?

  12. #12
    scoutt
    Guest

  13. #13
    Fanatic Member ubunreal69's Avatar
    Join Date
    Apr 2001
    Location
    Morayfield, Australia
    Posts
    609
    ok,i have the apache server and perl, but i cant even figure out how to run a single cgi script properly, can anyone help please ?

  14. #14

  15. #15
    Fanatic Member ubunreal69's Avatar
    Join Date
    Apr 2001
    Location
    Morayfield, Australia
    Posts
    609
    thanx i'll try that quickly, thanx a lot scoutt

  16. #16
    scoutt
    Guest
    no prob. if you run into problems start a new thread and I'll help you out

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width