Hi Bill, what's happening in the script is: use lib $PATH_LIB; use OpenSRS::XML_Client; use OPS; use Config; the first 'use' tells MacPerl to look for perl modules in $PATH_LIB ># Can't locate OpenSRS/XML_Client.pm in @INC. this means MacPerl can't find this module. Check you installed these modules. If you have installed them, then the error is being caused because the path in $PATH_LIB isn't pointing to where the mods are, so check you're using the right path (note that the CONFIG file sets $PATH_LIB to "::etc:lib:"; which doesn't exist on a Mac) Something to think about - if you're going to be adding non standard modules, in other words modules which are not part of the MacPerl package, you should make a site_perl folder to keep the scripts, rather than putting them into the MacPerl 'lib' folder. To do this: 1] create a 'site_perl' folder and set the path to it in MacPerl. You can do this by going to MacPerl -> EDIT -> preferences a window will open where you can set the libraries you want to use. Make sure site_perl comes before the standard 'lib' file so Mac Perl will check there first, otherwise you'll get an error like the above - "Can't locate Some.pm in @INC" 2] copy any non standard mods into this new folder 3] Then take out the 'use lib' declaration from the script. It's a bit of a bind to do but it may save you later grief - you can just bung all of your mods in there and MacPerl will find them "as if by magic" HTH Robin

Reply via email to