ActivePerl - Getting Started

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Studentmadhura05
    New Member
    • Nov 2006
    • 25

    ActivePerl - Getting Started

    I was asked to use the local machine to code in PERL using ActivePERL software. I have no clue how to use it. I am trying to figure out but some quick help will be highly appreciated.
    Thanks
  • KevinADC
    Recognized Expert Specialist
    • Jan 2007
    • 4092

    #2
    active perl is used pretty much just like perl on any other system. Download the correct version for your operating sytem of activestate perl from the below link and install it:

    www.activestate .com

    then open the activestate/activeperl folder and read the documentation.

    Comment

    • Studentmadhura05
      New Member
      • Nov 2006
      • 25

      #3
      I did download Activestate and also started reading the documentation. But where do I code. I know I might be sounding stupid. But the command promt is ppm>
      I tried emacs, pico to start editing. But I guess I am completely wrong somewhere.
      Please help.

      Comment

      • Studentmadhura05
        New Member
        • Nov 2006
        • 25

        #4
        Oh...I was supposed to use command prompt. As of now I seem to be ok. I will be back with more obvious questions for a while ...but I am sure I will improve :)
        Thanks

        Comment

        • KevinADC
          Recognized Expert Specialist
          • Jan 2007
          • 4092

          #5
          You can use any text editor to write your perl code, save it to a file and run it from the commad line. If later you want to write CGI scripts you will need an http server installed also. Open notepad, write:

          print "hello world";

          save as test.pl (or 'test.txt' or 'test.foo', the extension is not important with windows)

          then at command prompt:

          perl test.pl

          usually no path to perl line is needed for command line scripts with windows, but you can add it if you want to:

          #!c:/perl/bin/perl.exe

          or whatever your setup is.

          Comment

          Working...