[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-Scribes] "Basic Perl Filters in BBEdit" Column



Larry Moore, said in Re: [MacPerl-Scribes] "Basic Perl Filters in BBEdit" 
Column at Apr/20/2000, Thu 12:48:27.

> Is this article now long enough?

It's about 1800 words, or a little more than doubled in length, I'd say 
yes, that's long enough.
 
> I remember our discussion about hashing lines to print only unique
> occurences and thought your solution very perlish.

I don't remember it as being my solution, but:

#!perl -nl
print unless $s{$_}++

was the ultimate form the script took.  The Unix uniq1() utility in one 
line of Perl!

I'll have to check the archive, but the path to get to that point was (in 
my mind at least) not trivial.

--B
Brian McNett, Webmaster/MacPerl Guru
*************************************************************
Mycoinfo. The world's first mycology e-journal.
http://www.mycoinfo.com/
*************************************************************


==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-scribes-request@macperl.org