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

Re: [FWP] new real world golf hole: line wrapping (proposed and solved)



On Wed, Jun 07, 2000 at 12:46:52PM -0500, David L. Nicol wrote:
> perl -pe 's/(.{1,80})\s/$1\n/g'

How about

  perl -e 'system"fmt -sw80"'

?

It doesn't work exactly the same, but it does a comparable job in terms of
readability on the ITBTWTCL text (which really needs some manual
intervention to make it readable). There's at least one HTML-formatted
version around, though...

-- 

Adam Sampson
azz@gnu.org

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe