Re: Golf: word wrap and quote stdin

2003-04-03 Thread Paul Johnson
[EMAIL PROTECTED] said: > Golfish, obvious or downright cunning answers all welcome: > > I'd like to pipe text in (either with just linebreaks, or dos-style > carriage > return + linebreak's) and get out word-wrapped lines of not more than 80 > characters prefixed with "> ". ¦ fmt -78 ¦ perl -pe

Re: Golf: word wrap and quote stdin

2003-04-03 Thread darren chamberlain
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * TSchutzerWeissmann at uk.imshealth.com [2003-04-03 10:49]: > Whichever of Text::Wrap and Text::Autoformat is the smallest, I guess. > In fact since this is all happening to clipboard data I can use > Win32::Clipboard and dispense with the stdin part.

RE: Golf: word wrap and quote stdin

2003-04-03 Thread TSchutzerWeissmann
Title: RE: Golf: word wrap and quote stdin > From: darren chamberlain [mailto:[EMAIL PROTECTED]] [...] >   use Text::Wrap; > >   sub mywrap { >   my $data = ""> >   local $Text::Wrap::columns = 80; > >   return wrap('> &#

Re: Golf: word wrap and quote stdin

2003-04-03 Thread Simon Wistow
On Thu, Apr 03, 2003 at 04:10:02PM +0100, [EMAIL PROTECTED] said: >Golfish, obvious or downright cunning answers all welcome: > >I'd like to pipe text in (either with just linebreaks, or dos-style >carriage return + linebreak's) and get out word-wrapped lines of not more >than 80 c

Re: Golf: word wrap and quote stdin

2003-04-03 Thread Ian Brayshaw
On Thu, 2003-04-03 at 16:10, [EMAIL PROTECTED] wrote: > Golfish, obvious or downright cunning answers all welcome: > > I'd like to pipe text in (either with just linebreaks, or dos-style > carriage return + linebreak's) and get out word-wrapped lines of not > more than 80 characters prefixed with

Re: Golf: word wrap and quote stdin

2003-04-03 Thread Dave Cross
From: [EMAIL PROTECTED] Date: 4/3/03 3:10:02 PM > Golfish, obvious or downright cunning answers all welcome: > > I'd like to pipe text in (either with just linebreaks, or > dos-style carriage return + linebreak's) and get out > word-wrapped lines of not more than 80 characters prefixed > with

Re: Golf: word wrap and quote stdin

2003-04-03 Thread darren chamberlain
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * [2003-04-03 10:10]: > I'd like to pipe text in (either with just linebreaks, or dos-style > carriage return + linebreak's) and get out word-wrapped lines of not > more than 80 characters prefixed with "> ". use Text::Wrap; sub mywrap { m

Golf: word wrap and quote stdin

2003-04-03 Thread TSchutzerWeissmann
Title: Golf: word wrap and quote stdin Golfish, obvious or downright cunning answers all welcome: I'd like to pipe text in (either with just linebreaks, or dos-style carriage return + linebreak's) and get out word-wrapped lines of not more than 80 characters prefixed with "&