in reply to Equal strings don't match!
Maybe $elem has an extra \n that needs to be chomped?
Conway's Game of Life
Perl regular expressions
My Magic 8-Ball™
Results (174 votes). Check out past polls.