Writing the Dice script reminded me that I had a bunch of neat perl tricks saved on a CD. Here’s one of my favorites.
#!/usr/bin/perl my %hash = map { $_ => 1 } @some_array; @unique_lines = keys %hash;
This comes in handy when you read in a bunch of lines from a file, for example. I probably could have used it below.

