You might not mean to say that there is a bug in Perl, but you are saying it!

What you're asking boils down to, "I want Perl to work as documented." Well Perl does. So the problem isn't there - it is somewhere else in your code.

As for figuring your code out, I strongly advise that you get in the habit of writing little snippets to test theories like this. Because right now you're staring at a mass of code and you are coming up with a theory. You aren't testing that theory, or verifying it, you are coming up with it and then posting for help based on your theory. But your theory is wrong. Nobody can provide you with help based on your theory, because you haven't actually identified your problem!

This isn't an effective debugging strategy. It is a very common one that people naturally fall into. It takes a lot of experience and patience to avoid this trap (been there, done that - we all have). And you won't progress until you start doing something more effective.

So sitting where I am, all that I can do is tell you that the problem isn't what you think it is. You'll have to look elsewhere. I told you a couple of other places to look. But without your code I can't do more than guess either. (Again, not very effective. But at least my guesses are based on a lot of experience about what can go wrong, so I'll come up with theories that are possible, if not likely.)


In reply to Re^5: Make select apply to modules as well by tilly
in thread Make select apply to modules as well by richz

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.