Just in the context of having answered Anonymous Monk above and reformulated my question, I found the origin of the problem.

While trying to solve my first problem (the path to the module not being recognized), I made the silly mistake of changing:

use VMS_utils;
to
use VMS_UTILS;
thinking that I would thus give Perl a better chance to find the module (VMS file names are all uppercase). But that was a mistake, because in my module I have:
package VMS_utils;
So what happens with this, is that, indeed, Perl is able to load the module successfully, but it no longer recognizes the package, because it is declared with some lower case letters within the module and I invoked it with all upper case letters in the program.

Sorry to have bothered you with my silly mistakes, dear fellow monks, I should have found by myself, but I guess my mind was just too confused yesterday evening after having tried at least three dozen alternative syntaxes.


In reply to Re: Solved - Using a module under VMS by Laurent_R
in thread Solved - Using a module under VMS by Laurent_R

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.