in reply to Batch database creation
local $/; $sql_dump = <$source>; [download]
SQL dumps are usually very large, so slurping the whole dump in memory doesn't seem the right thing to do.