I have some code that I'm working on/improving that uses a number of packages that were designed in-house. These packages are referenced like this:

# in my main module
use ABC::HandleData;

with the HandleData.pm module referring to other members of the ABC namespace:

# in HandleData.pm
use ABC::HandleImages; use ABC::HandleOtherData;

The ABC group doesn't handle data in the way I want, so I'd like to set up an improved version of it. I thought I could just make copies of all ABC::xyz.pm file, rename them ABC2::xvz.pm, then change all references in my main module to use ABC2. (And change all references in the ABC2 modules as well.) This does not work. I'm getting an internal server error instead.

Is it even possible to do this the way I want? Do I have to set up a completely different namespace for these packages? If so, how would I do that? I'm completely new to Perl OOP, so any pointers will be greatly appreciated!

In reply to Newbie question on packages/OOP by vandaleur

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.