On Tue, Nov 07, 2006 at 01:23:24PM -0500, Uri Guttman wrote:
> >>>>> "DB" == Dan Boger <[EMAIL PROTECTED]> writes:
> 
>   DB> On Tue, Nov 07, 2006 at 11:43:49AM -0500, Greg London wrote:
>   >> Anyway, I think I need a unix2dos script that will just fix the unix
>   >> newlines without modifying the dos newlines.
> 
>   DB> Well, a workaround is to make everything unix, then run unix2dos:
> 
>   DB> perl -i -p -e 's/\r//' script.pl
> 
> just to be pedantic, tr/\r//d is faster for that kind of stuff. too
> many perl coders forget about tr/// when they do single char munging
> using s///.

Very very very true.  Every time someone points it out to me I swear
I'll remember it next time - maybe this time it'll stick!

-- 
Dan Boger
[EMAIL PROTECTED]
 
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to