My perl is tasty fresh. Thank you for your sagacious comment.

I do not need a reresher. I need someone to point out the obvious mixup in my very simple code that will not return a value for some reason.

I do NOT need a pointer to the 4 tutorials i have already read last night before posting here.

I do NOT need a sub example : I can do subs just fine. the question is why is the package not returning the value.

I do NOT need Someone to rewrite my code in 2 lines.

And of course we knew all this because you mentioned it in your OP...

What? No? Not there? Oh, yes, then our ESP, that would have told us...

Oh, dear, Acme::ESP is offline? Oh noes!

Seriously, please do not chastise those who volunteer their time to help you, and who rely solely on the information you are generous enough to provide in order to do so. Thank you.

HTH,

planetscape

In reply to Re^2: Returning the value generated in package/module problem by planetscape
in thread Returning the value generated in package/module problem by Monkomatic

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.