The main package doesn't call anything in package mutex. There of course are issues in that package mutex is contained with the file package.pl and there is nothing to say how main:: would even find the sub "update" which is contained in the package mutex which itself is contained within the file package.pl

I think some more work is in order in order to get a submission that actually runs. I don't see how even with Perl 4 that this code would work or that the the existence or not of file: package.pl would even matter at all.

Update:
I started working with Perl in the 1990's with Perl 5.6. As Perl has evolved, I've seen some of my old code at least produce warnings with new versions of Perl that it didn't before and I've had to modify that code. Perl 4 is very old. It could be time to just re-write it?


In reply to Re: Perl's changes in the use of packages by Marshall
in thread Perl's changes in the use of packages by Anonymous Monk

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.