in reply to Custom module problems

you're not exporting anything by default (see the Exporter docs).. do either one of these:
# this will export the functions by default our @EXPORT = qw(connectdb dosql); # This will make them available upon request ... our @EXPORT_OK = qw(connectdb dosql); # ... and the calling code will need to be like: use sqlsupport qw/onnectdb dosql/;