Go to http://www.watson-net.com/free/perl/s_chess.asp
I'm quite new at Perl but I'm working nevertheless on a Chess server. So far I have only some C++ code, but I decided to go Perl, because our sysadm doesn't like (for some reason) my server crashing C++ CGI apps.
I've downloaded the chess.pl file from the site above, but as a newbie to perl I prefere to invent the wheel myself. I have an idea of how to refresh a window or a frame only when needed, like a chess board or a chat window.