Re: perl scripts in mac
Re: perl scripts in mac
- Subject: Re: perl scripts in mac
- From: Gareth Eason <email@hidden>
- Date: Wed, 31 Mar 2004 16:56:07 +0100
Also, if you use a decent text editor (TextPad (www.textpad.com) for
Windows) for example, it will happily handle these issues and allow you
to either maintain the UNIX or PC break types, or change them.
There are may examples of text editors that will do this. Notepad is
really not appropriate for anything other than writing up a 5 line
shopping/to-do list with.
FTP'ing the file as MODE A (ascii/text) is the 'correct' way of
converting line-termination characters between operating systems /
platforms.
It's nothing to do with PERL as such :-)
Hope this helps. Best regards,
-->Gar
Eugene Lee wrote:
On Tue, Mar 30, 2004 at 06:54:52PM -0500, Uri Hershberg wrote:
:
: I am trying to use perl scripts for all kinds of analysis and file
: conversions and it seems in capable of working with mac files. it
: worked fine on windows machine and a linux machine but not on my mac .
: When I take my mac files to a Windows XP environment (in Notepad) they
: open without breaks and with this weird character.
: I am assuming that this character is unknown to the perl scrip.
: any suggestions how to fix this?
As others have mentioned, this sounds like a newline issue. If you are
transferring these files via FTP, set the transfer type to ASCII/text
and the FTP transfer will automatically translate the newlines. If you
are transferring these files manually (e.g. via a floppy disk), you must
convert the files from a Mac text file to a Windoze text file before it
can be properly processed by your Perl script.
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.