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('> ', '> ', $data);
> }
>
> print mywrap(join '' => );
>
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 "> ".
any takers?
Philip Newton has the answer?
> Here's a very non-elegant, but effective (at least, it was for me),
> workaround:
>
> when you have an email message open, choose File | Properties
> (or press
> Alt+Enter), then "sending options", then the "Internet" tab (if it
> isn't already selected), then
Title: RE: Perl? Platform for web-based shared translation project.
Robin Berjon suggested
> Eric Cholet wrote a system like that for JazzValley
> (http://jazzvalley.com/), a
> site the content of which is collaboratively translated
> constantly. He used TT
> and Perl cunning to the resc
Title: Perl? Platform for web-based shared translation project.
hello again
I'm thinking of setting up a shared translation project for some books (fiction) in French that I would like to translate but need help with. Ideally it should be in Perl, but it depends what wheels are already out t
Title: RE: Perl, COM and ADO's - where do I start ?
Hi Leo
> -Original Message-
> From: Leo Lapworth [mailto:[EMAIL PROTECTED]]
> Sent: 13 March 2003 14:39
> To: [EMAIL PROTECTED]
> Subject: Perl, COM and ADO's - where do I start ?
>
>
> Hi Folks,
>
> To cut a long story short I w
Title: RE: regrouping lines of STDIN - Outlook does what it wants
to David Cantrell's bemusement
> > Still, it's Lent, humility and no alchohol the order of the 40 days.
>
> Are you sure you're on the right list?
o yes. You've all been very helpful. It's almost a shame I'm leaving for the G
Title: RE: regrouping lines of STDIN - Outlook does what it wants
Joel, reassuringly,
> one... In other words, sending MIME-encoded mail with html
> and plaintext
> versions should just DTRT in most clients.
I'll stop apologising then. It still keeps me out of some mailing lists where I
Title: RE: regrouping lines of STDIN - Outlook does what it wants
Thanks Lee,
> Outlook->Tools/Options/Mail format tab/Send in this message
> format = Plain
> text
but no. This message is plain text by that method, enjoy...
Tom SW
Title: RE: regrouping lines of STDIN
> Dunno, it displays as 3 characters on my screen. Maybe "mbm"
> is a funny
> foreign multi-byte character that's sometimes difficult for
> others to get
> to grips with.
>
>
> the hatter
>
>
yes, more sinned against than sinning, typo-wise,Wise,Wize
Title: RE: regrouping lines of STDIN -> hashtable algorithm?
Hi Luis,
...
> Looks like a hashtable algorithm... just curious. =-]
don't know what one of those is...
...
> # First time for this array ref...
> $seen{$code} = [ $_ ];
yup, [ ] was what I was looking for.
Title: RE: regrouping lines of STDIN
Lusercop points out
> > for (%seen) {
> ^ "values %seen" is more likely what you want here.
Of course! I was far too caught up with making the array ref in the first place (well, it's exciting the first few times).
Thank you. Don't unde
Title: regrouping lines of STDIN
Hello London.pm
first let me apologise, I know this mail will be accompanied by an HTML version & I don't know how to prevent it. Outlook swears I'm using plain text but somehow it doesn't end up that way. So, sorry...
This is intended to re-sort STDIN accor
Title: Economists argue against copyright...
I thought this might be of interest...
http://www.reason.com/0303/fe.dc.creation.shtml
Tom SW
14 matches
Mail list logo