Hi B, thanks, should have known ;-) >If that's the case, then you could simply do this: > >#!perl -nl >print unless $s{$_}++ This is verry pretty. I will have to figure out what it does exactly. > >which doesn't care about sort order. This is basically uniq(1) in a single >line of Perl. In fact, this preserves the existing order in the document, >just weeding out the duplicates. Kinda neat, but not flashy enough for a >demo. Maybe not, but i must admit that a few month's ago when i first met MacPerl i was very impressed by the simplicity of some scripts that did things that might have taken hours to do by hand. As I am with this one-liner. I think the key question here was for scripts (filters) that run within the editor of choice. I have another filter that takes a Excell export and creates html-pages for everyone of the selected lines in the BBEdit window, but then that could probably be done in two lines as well :-) If i should post this as a demo i would have to make up a fake database, so maybe someone else has this kind of thing lying around? That would certainly be suitable to demonstrate a little MacPerl? > >--B >-- >Webmaster/MacPerl Guru I guess you deserve the title Kind regards, Tommy. # ===== Want to unsubscribe from this list? # ===== Send mail with body "unsubscribe" to macperl-request@macperl.org