From: Donncha O Caoimh (donncha.ocaoimh at domain tradesignals.com)
Date: Fri 11 Feb 2000 - 16:49:27 GMT
You could chomp() each line which removes the carriage return, and then
add it as you're printing it later.
Donncha.
Lee Hosty wrote:
>
> just a quickie on Perl ...
>
> I've just read a file into an array ... how do I change the default newline
> delimiter when I want to use foreach $line ( at domain array) ??
>
> I've tried changing $: and $^L but neither seemed to have any effect ...
> plus the default for $: is " \n-" which seems a bit confusing to me ... why
> teh space and - sign ??
>
> also ... anyone have any idea what the newline / nextline delimiter is for
> a MAC ... I've been esarching all day for one ...
>
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:05:24 GMT