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

Re: [MacPerl] Commenting blocks of code



At 02:53 -0800 9/03/2000, Brian McNett wrote:
>can be implemented in a single line of Perl, as was discussed
>last November on the BBEdit-Talk mailing list:
>
http://search.barebones.com/action.lasso?-database=lists.fp3&-layout=import&-res
ponse=%2ftalk%5flists%2fdetail.html&-recid=45128&-search

Thanks for the url. I had a look into the BBedit lists when i picked up
this demo copy of 5.1 but saw no recent (after the end of 1999) messages in
the database.

> You might try Terje Bless' version (NOW you must reference the above
>post!) in MPW Perl, or using Toolserver.

Saved against later need. At the moment, BBedit filters are my focus.

> As a one-liner it fails because there's no input file.
>--B

Yes, this does work as an uniq BBedit filter
while ( <> )
{
print unless $s{$_}++
}

but I'll have to admit that i find it obscure.  Does this load the entire
file into ram?



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