[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
-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.
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('>
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
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
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
-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
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 "&