you could just as easily open a txt file with 2 fields, and search for the tld you want..

Yes hashes are awsome, but loading that many fields, JUST to do 1 lookup? .. you could have written a perl grep that was was more efficient.

and i do wonder how this could possibly be a security discussion.. Unless running that script on a slow machine might DoS it...