This is the worst one yet! How much memory do you think he has? He'd have to be on a 64-bit platform with 8GB of ram for this script to have a chance of running to completion. Check out Devel::Size and think about what's going to happen when you put nearly 5GB of data into hashes!