On Tue, Nov 07, 2006 at 01:23:24PM -0500, Uri Guttman wrote:
> >>>>> "DB" == Dan Boger <[EMAIL PROTECTED]> writes:
>   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///.

They also forget about the command-line version of tr.

tr -d \\r <script.pl >script.fixed.pl

-- 
David Cantrell | random organic glop and a metric fuckton of electricity

Do not be afraid of cooking, as your ingredients will know and misbehave
   -- Fergus Henderson
 
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to