in reply to most efficient regex to delete duplicate words

i think you can try using associative array for this:
@arr1 = qw(alpha beta beta gamma gamma gamma); undef %arr2; @arr2{@arr1} = (); @arr1 = keys(%arr2);
@arr1 will now contain "alpha beta gamma".

posted by ravi.singh@seepz.tcs.co.in

Edit Masem 2001-08-15 - Added code tags.