in reply to Good package practices

The way your code is written you should be able to call GetLinks directly from your CGI script, except for one thing: your package names don't match. Specifically you're calling use webData but the actual package is MyPackages::Config::webData. There's no rule against this except that Exporter isn't actually doing you any good since its import method never gets called. So if you want this to work you're going to have to change the package name to just webData or else move the .pm file so that it's in a directory called MyPackages/Config relative to your "use lib" root.

Once you've got that sorted out, then kwaping's first comment applies. You need to switch from @EXPORT_OK to @EXPORT if you want to use exported methods from your CGI script without explicitly importing them there.