There's nothing I can think of and the documentation suggests it's not something that is easy to do.

Yes - the first point I read in that link to the documentation pretty much kills all hope:
1.If the first operand has declared a subroutine to overload the opera +tor then use that implementation.
I suppose (untested) I could do:
my $n2 = (\$B_obj) - $A_obj;
and that would at least call module A's oload_minus() subroutine .... which would then be structured to de-reference the first argument and return the intended result.
But that solution is no more practical than the alternative you provided.

Thanks for the reply. I had, of course, consulted the overloading docs but had stopped reading before reaching the bit to which you linked.
It's not the end of the world if I have to modify module B.

Cheers,
Rob

In reply to Re^2: A little overloading conundrum by syphilis
in thread A little overloading conundrum by syphilis

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.