ack, don't know much about perl - how do i start it?

Discussion in 'Mac Apps and Mac App Store' started by jvaska, Jan 23, 2004.

  1. jvaska macrumors 6502

    Joined:
    Feb 18, 2002
    Location:
    Haiti/NYC
    #1
    i'm trying to figure out how to enable (or turn on) my perl stuff on panther?

    i can't find anytthing on the web about this...

    oh yeah, i've got 5.8.1 on my machine...preinstalled...just need to turn it on...i'm guessing...

    heeeeeeeelp...v
     
  2. mugent macrumors newbie

    Joined:
    Jun 7, 2002
    #2
    You don't really 'enable' perl, you just use it, like this.

    perl MyPerlScript.pl

    Moray
     
  3. Westside guy macrumors 601

    Westside guy

    Joined:
    Oct 15, 2003
    Location:
    The soggy side of the Pacific NW
    #3
    Also, if the execute bit is set on the script, you can just type ./MyPerlScript.pl and it'll run.
     
  4. titaniumducky macrumors 6502a

    titaniumducky

    Joined:
    Nov 22, 2003
    #4
    Also you can use TextEdit.

    At the top of your file type:
    "#!/usr/bin/perl" w/o quotes

    When you're done coding, open Terminal. cd into the correct directory. Then type "chmod +x _____" w/o quotes where _____ is your file name. Then type "./______" w/o quotes where _____ is your file name. BOOM!
     

Share This Page