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

Re: [MacPerl] UNIX Line Breaks



On Sat, Dec 09, 2000 at 12:45:28PM -0500, Paul Schinder wrote:
> At 11:22 AM -0600 12/9/00, Dan Baker wrote:
> >
> >I havent used MacPerl yet, but you *should* be able to:
> >@Lines = split('\n',$LongString) ;
> 
> Personally, I'd read a Unix file into an array with MacPerl like this:
> 
> $/ = '\012';
> chomp(@lines = <FILEHANDLE>);
> 

tr/'/"/;

In single quotes, only \' and \\ are significant.

Ronald

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