ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Apache Web-Serving with Mac OS X: Part 2
Subject:   ^M Problem Has A Simple Solution or Not?
Date:   2002-10-11 06:30:48
From:   anonymous2
I developed hundreds of Perl scripts on my old Mac, but I always did it online. ALong comes OS X, which in theory should make offline Perl dev. simple for a novice like me. But when Macintosh Apache sees a Mac developed Perl script (SimpleText), it croaks because it sees ^M instead of a carriage return.


So I opened a test file in PICO, and one by one replaced each ^M with a unix carriage return... and poof... the script works. So now I'm searching for a simple way to convert my old SimpleText Perl scripts into Mac OS X Perl compatable ones. TextEdit will save a PICO written file in the write format, but saves SImpleText files with the ^M, and there is no toggle that I can find to tell it to get rid of the ^M and give me a mac unix version. This is frustration because I can't find a replace all command in PICO.


1) why does my unix virtual server that I pay $84 a month for read my old mac written Perl scripts without a hitch,


2) What do I have to do to convert my old Perl scripts so that Mac OS X Perl can read them???????


Jim


1 to 1 of 1
  1. ^M Problem Has A Simple Solution or Not?
    2002-11-28 07:09:24  yyyyy [View]

    • Macintosh line returns in scripts (^M)
      2003-02-17 11:00:04  kenv [View]

1 to 1 of 1