Bart Lateur wrote: > > On Tue, 15 Oct 2002 17:14:39 +0100, Jasper McCrea wrote: > > >Why not just: > > > >s/(\s+\S+){4}\s*$//; > > > >$1 for the chopped stuff. > > $1 contains the last "word" and preceding whitespace. For every match, > the captured value overwrites the previous one. You need parens around > it all to capture the lot. > > s/((\s+\S+){4})\s*$//; >
I meant to write $&. (that's what I'm saying, anyway, and you can't prove otherwise) Jasp damn that reply to! Sorry Bart -- My carrot-weapon was soft and ineffectual