in reply to Simple config solution
in thread Code versus Config
People have recommended putting the config into __DATA__ and this combined with an optional config file seems to me to be the best solution. If someone removes the config file then at least the script will continue to work with a reasonable set of defaults. Thanks to everyone who replied to this question.