Re: regrouping lines of STDIN

2003-03-19 Thread Philip Newton
[Apologies for coming into this discussion so late] On 10 Mar 2003 at 2:00, Dave Cross wrote: From: Blackwell, Lee [IT] [EMAIL PROTECTED] Date: 3/10/03 9:51:14 AM first let me apologise, I know this mail will be accompanied by an HTML version I don't know how to prevent it. Outlook

RE: regrouping lines of STDIN

2003-03-19 Thread TSchutzerWeissmann
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 send

Re: regrouping lines of STDIN

2003-03-19 Thread Philip Newton
On 19 Mar 2003 at 14:12, [EMAIL PROTECTED] wrote: [sending attachments as UUEncoded to work around auto-HTML MSexChange misfeature] Well, I've tried that with this message... Looks good to me. Cheers, Philip -- Philip Newton [EMAIL PROTECTED]

Re: regrouping lines of STDIN

2003-03-14 Thread Nicholas Clark
On Thu, Mar 13, 2003 at 04:34:39PM +, Jasper McCrea wrote: Nicholas Clark wrote: On Mon, Mar 10, 2003 at 04:04:54PM +, Jasper McCrea wrote: If $_ isn't too big, the latter is probably more efficient. I said probably. use Benchmark; # Recent experience with writing test

Re: regrouping lines of STDIN

2003-03-13 Thread Adam Spiers
Jasper McCrea ([EMAIL PROTECTED]) wrote: I agree. Pub good. (But I'd rather spend the time breeding crabsticks) That was an obscure reference to Harry Hill, for those who don't have to suffer a flatmate with zany TV taste. OK, I have to admit it was pretty funny...

RE: regrouping lines of STDIN

2003-03-10 Thread Blackwell, Lee [IT]
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... Outlook-Tools/Options/Mail format tab/Send in this message format = Plain text That's

RE: regrouping lines of STDIN

2003-03-10 Thread Dave Cross
From: Blackwell, Lee [IT] [EMAIL PROTECTED] Date: 3/10/03 9:51:14 AM 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...

Re: regrouping lines of STDIN

2003-03-10 Thread Lusercop
On Sun, Mar 09, 2003 at 07:21:19PM +, Robin Szemeti wrote: On Sunday 09 March 2003 15:10, Shevek wrote: /g evaluated in a list context causes =~ to return a list of all bracketed ^^ note: no is no no my pretty little vampire slayer ... its not the /g that

RE: regrouping lines of STDIN - Outlook does what it wants

2003-03-10 Thread TSchutzerWeissmann
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

Re: regrouping lines of STDIN

2003-03-10 Thread Tim Sweetman
Lusercop wrote: On Sun, Mar 09, 2003 at 07:21:19PM +, Robin Szemeti wrote: On Sunday 09 March 2003 15:10, Shevek wrote: /g evaluated in a list context causes =~ to return a list of all bracketed ^^ note: no is no no my pretty little vampire slayer ...

Re: regrouping lines of STDIN

2003-03-10 Thread Robin Szemeti
On Monday 10 March 2003 10:08, Lusercop wrote: On Sun, Mar 09, 2003 at 07:21:19PM +, Robin Szemeti wrote: On Sunday 09 March 2003 15:10, Shevek wrote: /g evaluated in a list context causes =~ to return a list of all bracketed ^^ note: no is no no

Re: regrouping lines of STDIN - Outlook does what it wants

2003-03-10 Thread Joel Bernstein
On Mon, Mar 10, 2003 at 10:07:16AM -, [EMAIL PROTECTED] wrote: 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... It would seem that Outhouse is taking your send as Plain text to

Re: regrouping lines of STDIN - Outlook does what it wants

2003-03-10 Thread Mark Fowler
Alternatively, we could run something like demime to strip out all non-text/plain parts, but that will probably break PGP signing and stuff. No, as that's subtly different. The PGP signature is a normal attachment, whereas html mail uses multipart/alternative etc to indicate that this is an

RE: regrouping lines of STDIN - Outlook does what it wants

2003-03-10 Thread TSchutzerWeissmann
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

Re: regrouping lines of STDIN - Outlook does what it wants

2003-03-10 Thread Joel Bernstein
On Mon, Mar 10, 2003 at 01:33:48PM -, [EMAIL PROTECTED] wrote: 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

Re: regrouping lines of STDIN

2003-03-10 Thread Robin Szemeti
On Monday 10 March 2003 12:54, Lusercop wrote: On Mon, Mar 10, 2003 at 11:16:18AM +, Robin Szemeti wrote: /g evaluated in a list context causes =~ to return a list of all bracketed submatches. That's what causes =~ to have an appropriate return value for assigning to a list lvalue.

Re: regrouping lines of STDIN

2003-03-10 Thread Robin Szemeti
On Monday 10 March 2003 13:31, Andrew Wilson wrote: ($foo) = 'foo boo moo' =~ /\w+/g; print $foo\n; foo ahh ! .. now I have to confess I didn't know that! well well ... one lives and learns. -- Robin Szemeti

Re: regrouping lines of STDIN - Outlook does what it wants

2003-03-10 Thread Nicholas Clark
On Mon, Mar 10, 2003 at 11:44:00AM +, Mark Fowler wrote: People could always offer to help the Siesta project to get it to a state where we could use it to run all the London.pm mail. Then doing things like this is quite straight forward. What does Siesta still need done in order to be

Re: regrouping lines of STDIN

2003-03-10 Thread Jasper McCrea
Paul Makepeace wrote: On Fri, Mar 07, 2003 at 02:30:53PM +, Andrew Wilson wrote: On Fri, Mar 07, 2003 at 01:24:43PM +, Joel Bernstein wrote: while (STDIN) { if (my ( $code ) = /$rxp/g) { if ( my ($code) =~ /$rxp/g ) ... surely? ie, s/=/=~/ That's not a

Re: regrouping lines of STDIN

2003-03-09 Thread Paul Makepeace
On Fri, Mar 07, 2003 at 02:30:53PM +, Andrew Wilson wrote: On Fri, Mar 07, 2003 at 01:24:43PM +, Joel Bernstein wrote: while (STDIN) { if (my ( $code ) = /$rxp/g) { if ( my ($code) =~ /$rxp/g ) ... surely? ie, s/=/=~/ That's not a substution, it's assigning the result

Re: regrouping lines of STDIN

2003-03-09 Thread Shevek
On Sun, 9 Mar 2003, Paul Makepeace wrote: On Fri, Mar 07, 2003 at 02:30:53PM +, Andrew Wilson wrote: On Fri, Mar 07, 2003 at 01:24:43PM +, Joel Bernstein wrote: while (STDIN) { if (my ( $code ) = /$rxp/g) { if ( my ($code) =~ /$rxp/g ) ... surely? ie,

Re: regrouping lines of STDIN

2003-03-09 Thread Paul Makepeace
On Sun, Mar 09, 2003 at 03:10:06PM +, Shevek wrote: On Sun, 9 Mar 2003, Paul Makepeace wrote: On Fri, Mar 07, 2003 at 02:30:53PM +, Andrew Wilson wrote: On Fri, Mar 07, 2003 at 01:24:43PM +, Joel Bernstein wrote: while (STDIN) { if (my ( $code ) =

Re: regrouping lines of STDIN

2003-03-09 Thread Robin Szemeti
On Sunday 09 March 2003 15:10, Shevek wrote: On Sun, 9 Mar 2003, Paul Makepeace wrote: snip my ($code) = $_ =~ /a (reg) ex/; I'm not clear on the point of the /g though. /g evaluated in a list context causes =~ to return a list of all bracketed submatches. That's what causes =~ to have

Re: regrouping lines of STDIN

2003-03-08 Thread Earle Martin
On Fri, Mar 07, 2003 at 01:59:41PM +, Joel Bernstein wrote: it's a unicode character which likes buffy. Is that sort of like a fictional character? -- $x='4a75737420616e6f74686572205065726c'#Earle Martin .'206861636b65720d0a';for(0..26){print #

Re: regrouping lines of STDIN

2003-03-07 Thread Lusercop
On Fri, Mar 07, 2003 at 01:03:33PM -, [EMAIL PROTECTED] wrote: for (%seen) { ^ values %seen is more likely what you want here. It won't work with strict because I get Can't use string (AA) as an ARRAY ref while strict refs in use. How do I use a proper array ref? Any

Re: regrouping lines of STDIN

2003-03-07 Thread Joel Bernstein
On Fri, Mar 07, 2003 at 01:03:33PM -, [EMAIL PROTECTED] wrote: 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

Re: regrouping lines of STDIN

2003-03-07 Thread Joel Bernstein
On Fri, Mar 07, 2003 at 01:20:42PM +, Lusercop wrote: On Fri, Mar 07, 2003 at 01:03:33PM -, [EMAIL PROTECTED] wrote: for (%seen) { ^ values %seen is more likely what you want here. It won't work with strict because I get Can't use string (AA) as an ARRAY ref

Re: regrouping lines of STDIN

2003-03-07 Thread Lusercop
On Fri, Mar 07, 2003 at 01:25:29PM +, Joel Bernstein wrote: Ahh, so that's what he meant. Yeah. AOL what mbm said /AOL ^^^ who's this mbm character? :-) -- Lusercop.net - LARTing Lusers everywhere since 2002

Re: regrouping lines of STDIN

2003-03-07 Thread Luis Campos de Carvalho
- Original Message - From: [EMAIL PROTECTED] Sent: Friday, March 07, 2003 10:03 AM Hello London.pm first let me apologise, [...] an HTML version [...] Don't worry about this. funny Can anybody please send a no-more-than-twenty-chars-HTML-filtering-perl-script to Mr. Schutzer?

RE: regrouping lines of STDIN

2003-03-07 Thread TSchutzerWeissmann
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 understand what he Joel

RE: regrouping lines of STDIN - hashtable algorithm?

2003-03-07 Thread TSchutzerWeissmann
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. But I think I can do

Re: regrouping lines of STDIN

2003-03-07 Thread the hatter
On Fri, 7 Mar 2003, Lusercop wrote: On Fri, Mar 07, 2003 at 01:25:29PM +, Joel Bernstein wrote: Ahh, so that's what he meant. Yeah. AOL what mbm said /AOL ^^^ who's this mbm character? Dunno, it displays as 3 characters on my screen.

Re: regrouping lines of STDIN

2003-03-07 Thread Joel Bernstein
On Fri, Mar 07, 2003 at 01:47:36PM +, the hatter wrote: On Fri, 7 Mar 2003, Lusercop wrote: On Fri, Mar 07, 2003 at 01:25:29PM +, Joel Bernstein wrote: Ahh, so that's what he meant. Yeah. AOL what mbm said /AOL ^^^ who's this mbm

RE: regrouping lines of STDIN

2003-03-07 Thread TSchutzerWeissmann
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,Weaz,usw

Re: regrouping lines of STDIN - hashtable algorithm?

2003-03-07 Thread Roger Burton West
On Fri, Mar 07, 2003 at 01:56:50PM -, [EMAIL PROTECTED] wrote: But I think I can do this on the command-line with sort, somehow, all I want to do is sort on the 24th to 26th character of every line, instead of the whole thing. sort +.23 -25 (character numbering starts at 0) Roger

Re: regrouping lines of STDIN

2003-03-07 Thread Andrew Wilson
On Fri, Mar 07, 2003 at 01:24:43PM +, Joel Bernstein wrote: while (STDIN) { if (my ( $code ) = /$rxp/g) { if ( my ($code) =~ /$rxp/g ) ... surely? ie, s/=/=~/ That's not a substution, it's assigning the result of the pattern match to $code. /$rxp/g is matching against $_ not

Re: regrouping lines of STDIN - hashtable algorithm?

2003-03-07 Thread Randal L. Schwartz
TSchutzerWeissmann == TSchutzerWeissmann [EMAIL PROTECTED] writes: TSchutzerWeissmann Hi Luis, TSchutzerWeissmann ... Looks like a hashtable algorithm... just curious. =-] TSchutzerWeissmann don't know what one of those is... TSchutzerWeissmann ... # First time for this array ref...

Re: regrouping lines of STDIN

2003-03-07 Thread Randal L. Schwartz
Luis == Luis Campos de Carvalho [EMAIL PROTECTED] writes: Luis # I think you should rewrite this: Luis # push @{ $seen{$code} } , $_; Luis # Like this: Luis if( exists $seen{$code} ){ Luis # I already used this array ref... Luis push @{