in reply to Easy detection of BOM
Sure, File::BOM is the way to go, why not :)
Kinda related are file/File::LibMagic, mimetype
Conway's Game of Life
Perl regular expressions
My Magic 8-Ball™
Results (192 votes). Check out past polls.