Getting Started with Perl

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ykhamitkar
    New Member
    • May 2007
    • 64

    Getting Started with Perl

    Hi there,

    I am new to Perl.
    I am working in a data parsing project and my manager has suggested me to use Perl for it.

    I am using XP operating system.

    I have some basic questions
    1. How to install perl on computer.
    2. Do I need to download something for perl installation.
    3. I do not have access to C: in my office so can I use any other drive
    4. How to compile perl program in DOS.



    Thanks,
    Yogesh
  • KevinADC
    Recognized Expert Specialist
    • Jan 2007
    • 4092

    #2
    see if this link helps you:



    you want activestate perl, the link above will provide you with details. There is no need to compile perl or perl scripts.

    Comment

    • numberwhun
      Recognized Expert Moderator Specialist
      • May 2007
      • 3467

      #3
      Originally posted by ykhamitkar
      I am new to Perl.
      Welcome!

      Originally posted by ykhamitkar
      I am working in a data parsing project and my manager has suggested me to use Perl for it.
      And that is a good suggestion given Perl's adeptness at dealing with text.

      Originally posted by ykhamitkar
      I am using XP operating system.
      That's ok, I won't hold that against you since you are doing something for work.

      Originally posted by ykhamitkar
      I have some basic questions
      1. How to install perl on computer.
      That's pretty easy, just pay a visit to Active State and download their version of the Perl interpreter.


      Originally posted by ykhamitkar
      2. Do I need to download something for perl installation.
      See question #1.

      Originally posted by ykhamitkar
      3. I do not have access to C: in my office so can I use any other drive
      During the installation, I believe you have the option of installing to another location.

      Originally posted by ykhamitkar
      4. How to compile perl program in DOS.
      Perl is an interpreted language. The compilation that it does is on the fly as you execute a script. On Windows, you would put your code into a text file with the extension ".pl". To execute that script, you would issue something similar to the following:

      perl ./script.pl

      That will call perl and have it execute the script you supplied as an option. From there, you would just need to debug as I don't know too many people who write scripts that work the first time every time.

      One last note. Remember "use strict;" and "use warnings;"

      Regards,

      Jeff

      Comment

      • KevinADC
        Recognized Expert Specialist
        • Jan 2007
        • 4092

        #4
        were there not more replies in this thread?

        edit: never mind

        Comment

        • miller
          Recognized Expert Top Contributor
          • Oct 2006
          • 1086

          #5
          New topic split to: Parse script skipping certain data

          - MODERATOR

          Comment

          Working...