[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] line termination VS. perl libraries



At 11.02 -0700 2000.06.14, Tom Sackett wrote:
>I would like to create a few cross-platform libraries that will provide a
>set of subroutines to be used by both Macintosh and Windows computers. The
>code itself is cross-platform; it will work on both kinds of machines.
>However, before a script can load one of the libraries (using "use"), I
>have to make sure that has the right line termination.
>
>I would really, really, like to to have a single copy of each library on a
>central server that would be accessed by both the Macs and Windows
>machines, but I'm forced to keep two copies of each library that differ
>only in that one has the Mac CR line termination and the other has DOS CRLF
>line termination.
>
>Is there any way around this problem?

With perl 5.6 (and MacPerl 5.6 is in development), this MAY be
possible.  It would be nice if whatever server software you are using
would do automatic newline conversion for you, though.

-- 
Chris Nandor       |     pudge@pobox.com      |     http://pudge.net/
Andover.Net        | chris.nandor@andover.net | http://slashcode.com/

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org