Women in Technology

Hear us Roar



Article:
  Learning the Mac OS X Terminal: Part 1
Subject:   Perl Scripts
Date:   2006-01-09 14:38:01
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-11-29 09:39:26  tcomputerchip [View]

    you are probably using hard coded things that wont work on the mac. Things like "C:\windows\notepad.exe" would not work on OSX, but more specific you may have a problem with the slashes and carriage returns. When comming from windows, text files have a CT LF (Ctrl+Line Feed) OSX uses many forms of this, if you open the file with vi or pico, you would see something like ^M (this means that the OS can't read the meta character in that location, but the meta character is still in the file.) You can do a simple perl script on the Mac that searches for the meta character and replaces it with the proper "OSX" carriage returns.