--- Jeff 'japhy/Marillion' Pinyan wrote:
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 likeperl -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?
perl -pe '$_ x= /pattern/'
to make a poor man's grep. I found that beautiful.
--
Jeff "japhy" Pinyan japhy@pobox.com 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 **