From: Greg Merritt (gmerritt@uclink.berkeley.edu)
Date: Wed Nov 28 2001 - 09:49:44 PST
Thanks for the replies -- a number of folks with suggestions
along similar lines. A common theme is knowing (which I didn't) that
the Macintosh line break is represented by \x0d in regex's.
One of the approaches is described here:
http://www.macworld.com/2001/07/howto/osxsecrets.html
...though I would suggest that instead of the line
$textFile =~ s/\x0d/\x0a/;
you'd likely want to use
$textFile =~ s/\x0d/\x0a/g;
Thanks again!
-Greg
------------------------------------------------------------------------
The following was automatically added to this message by the list server:
For information about MAGNet, its meetings and events, and its
mailing list, including information on subscribing and unsubscribing,
see the MAGNet Web site at <http://mac.berkeley.edu/help/magnet/>.
This archive was generated by hypermail 2b29 : Wed Nov 28 2001 - 09:50:29 PST