in reply to Perl + MySQL Driven page
Here's an article with some helpful tips on putting IP addresses into mysql.