On Jul 30, Paul said:
>--- Jeff 'japhy/Marillion' Pinyan <[EMAIL PROTECTED]> wrote:
>> perl -pe '$_ x= !$seen{$_}++' (attributed to some of Larry's genius)
>
>LOL!!! Twistedly brilliant!
>
>Ok, lemme see if I can parse this.....
[correct prognosis snipped]
>Is that right?
Yes. I attribute that to Larry Wall, because he wrote something like
perl -pe '$_ x= /pattern/'
to make a poor man's grep. I found that beautiful.
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Re:[OT?]Deleting Duplicate Lines one-liner
Jeff 'japhy/Marillion' Pinyan Mon, 30 Jul 2001 11:22:07 -0700
- Deleting Duplicate Lines one-liner David Blevins
- is there a module ala getopt::long that... Matt Lyon
- Re: is there a module ala getopt::l... Paul Johnson
- Re: Deleting Duplicate Lines one-liner Paul
- Re: Deleting Duplicate Lines one-liner Carl Rogers
- Re: Deleting Duplicate Lines one-li... Paul
- Re: Deleting Duplicate Lines on... Jeff 'japhy/Marillion' Pinyan
- Re:[OT?]Deleting Duplicate ... Paul
- Re:[OT]Deleting Duplic... Jeff 'japhy/Marillion' Pinyan
- Re:[OT]Deleting Du... Paul
- Re:[OT?]Deleting D... Peter Scott
- Re:[OT?]Deleti... Peter Scott
- RE: Deleting Duplicate Line... David Blevins
- RE: Deleting Duplicate... Paul
- RE: Deleting Dupli... David Blevins
- RE: Deleting D... Paul
