Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Article:
  Learning the Mac OS X Terminal, Part 5
Subject:   Perl Scripts
Date:   2006-01-09 14:57:28
From:   Cruzapete
I dont know if this is too late that it wont be answered. I will so much appreciate it if it can be treated and my problem solved.


I was a windows user but moved to Mac OS X. I have some perl scripts I run on MS-DOS cmd.exe but have been having problems running those scripts on Mac OS X terminal.


Is there any command used for running perl scripts or how do I go about it.


Thanks for responding.
Cruzapete

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Perl Scripts
    2006-01-18 06:43:21  tankl [View]

    OS X has built-in PERL support. Run "which perl" to show the path of your PERL interpretor.

    G4-Cube:/private/etc kltan$ which perl
    /usr/bin/perl

    Another note is Windows PERL script does not require the shebangs line, but is required for your UNIX/OSX PERL script. Just enter the shebangs line at the top of your script as below.

    #!/usr/bin/perl
    ...your script..

    good luck.