Perl Script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pavanip
    New Member
    • Mar 2008
    • 53

    Perl Script

    Hi,

    I am newer to Perl script.I don't know about perl. I have to do one project in perl.
    That is already developed.But I have to do some modifications to that.Please tell me what are the components I have to install in our system to run the perl script.My operating system is Windows XP. And how to compile and run the script.Here my major problem is script is not opening.Is there any other alternative to open the script.That file is in .cgi extension.And can we convert that script to html to view the results.Please give me some suggestions.

    Thanks
    Pavani
  • numberwhun
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    If I were you, I would start reading the basic books on perl as you have a lot to learn and pick up.

    First, you want to go to some place like strawberryperl. com, get the latest distribution and install it.

    From there though, you need to learn the basics before you go tackling CGI. A CGI program outputs HTML, so there would be no reason to convert it. Also, you don't compile Perl programs, per se, they are interpreted.

    Why not send me a private message (PM) with your email address and I will send you a couple of documents that will really get you a good base in Perl. Do not post your email here as it will be deleted. Emails are not allowed in the forums, thus why I asked you to PM me.

    Regards,

    Jeff

    Comment

    • KevinADC
      Recognized Expert Specialist
      • Jan 2007
      • 4092

      #3
      Install perl, either strawberryperl or activeperl (www.activestat e.com) and install an http server, I recommend apache (www.apache.org ). google for apache tutorials for how to setup apache to run CGI scripts, there are a number of step by step tutorials out there that will walk you through the setup process.

      Comment

      • eWish
        Recognized Expert Contributor
        • Jul 2007
        • 973

        #4
        I like using XAMPP for development. Gives me most everything I need to develop applications for the web.

        --Kevin

        Comment

        • pavanip
          New Member
          • Mar 2008
          • 53

          #5
          Perl Script

          Originally posted by numberwhun
          If I were you, I would start reading the basic books on perl as you have a lot to learn and pick up.

          First, you want to go to some place like strawberryperl. com, get the latest distribution and install it.

          From there though, you need to learn the basics before you go tackling CGI. A CGI program outputs HTML, so there would be no reason to convert it. Also, you don't compile Perl programs, per se, they are interpreted.

          Why not send me a private message (PM) with your email address and I will send you a couple of documents that will really get you a good base in Perl. Do not post your email here as it will be deleted. Emails are not allowed in the forums, thus why I asked you to PM me.

          Regards,

          Jeff
          Thanks for your quick response.I will follow your suggestions .
          Here that site is already developed in Perl.That is uploaded in FTP.My problem is I am unable download some files from FTP.They are not opening properly and some files are opening.Please can you tell me What is the reason behind that?
          Is there any File permissions to open files.Please give me some suggestions how to resolve this issue.Its very urgent.I installed Perl Express Editor to open cgi files.Is there a need to install any other components in our system to run these files?

          Comment

          • numberwhun
            Recognized Expert Moderator Specialist
            • May 2007
            • 3467

            #6
            Originally posted by pavanip
            Thanks for your quick response.I will follow your suggestions .
            Here that site is already developed in Perl.That is uploaded in FTP.My problem is I am unable download some files from FTP.They are not opening properly and some files are opening.Please can you tell me What is the reason behind that?
            Is there any File permissions to open files.Please give me some suggestions how to resolve this issue.Its very urgent.I installed Perl Express Editor to open cgi files.Is there a need to install any other components in our system to run these files?
            First, you should be able to open any Perl or CGI script with any text editor. No need for Perl Express unless you really want it. As for any other components, you would have to examine the scripts to see what modules are needed to be installed locally.

            Regards,

            Jeff

            Comment

            • KevinADC
              Recognized Expert Specialist
              • Jan 2007
              • 4092

              #7
              perl has nothing to do with why some files can't be opened. It could be a permission problem or other problem, like maybe the file is in use by another program and can't accessed (generally a windows problem).

              Comment

              • Kelicula
                Recognized Expert New Member
                • Jul 2007
                • 176

                #8
                Originally posted by KevinADC
                perl has nothing to do with why some files can't be opened. It could be a permission problem or other problem, like maybe the file is in use by another program and can't accessed (generally a windows problem).
                Yes usually if the file you download is garbled or "messed up" it is because it was created on another operating system that is incompatible.

                The file should work on the server though.
                Try downloading it in ASCII, and then BINARY. If it still doesn't look right, you may just NOT be able to "read" that file with your system.

                Comment

                Working...