Crossposted at StackOverflow. It is considered polite to inform about crossposting so people not visiting both sites do not waste their time on a problem already solved at the alien site.
Comment on Re: How to give a database as an input in a perl script?