At 6:30 PM -0700 9/1/04, Sam Ravindhran wrote: >I am a novice to Perl. Welcome.
>I am trying to port a bunch of >Perl scripts from Unix platform to VMS. When >attemtpting to run many of the scripts, I get an error >like the following (I have removed actual filenames >and paths) : >--------------------- >Can't locate <perl-module-name> in @INC (@INC >contains: perl_root:[lib.VMS_AXP.5_6_1] pe >rl_root:[lib] perl_root:[lib.site_perl.VMS_AXP] >perl_root:[lib.site_perl] /perl_ >root/lib/site_perl .) at <perl-script> line 35. >---------------------- The message pretty much means what it says; it can't find the module it's looking for in the places it would expect to find it. There are various reasons that could happen, mostly having to do with Perl set-up issues rather than platform issues. You can see what extensions you built with using: $ perl -"V:extensions" If the things you are trying to load aren't in that list, you may need to install them. We can't really tell from your sanitized version of the error what it is you might be missing. >Since these scripts do work on Unix platforms, they >are expected to work on VMS as well without major >changes. Specifcally, a basic change to add the "use >lib ..." in each script should not be required. No, it shouldn't. But if doing that causes the modules you are using to load successfully, then that might provide a clue to what's wrong. >Maybe >I am missing some VMS logical like PERL_PATH or >equivalent. Is there any such logical available ? What >other methods are available to include additional >paths to INC without modifying the scripts? As Andrew mentioned, there is PERL5LIB. But you shouldn't need that on VMS unless you also needed it on whatever platform you are coming from. Do you have modules in a non-standard location? -- ________________________________________ Craig A. Berry mailto:[EMAIL PROTECTED] "... getting out of a sonnet is much more difficult than getting in." Brad Leithauser
