I started putting print statements in the methods of the package and they were printing on STDOUT ... Suddenly they stopped.

So either the way modules work suddenly changed, or else something in your code and/or system did. I just want to reinforce the idea, already expressed directly or indirectly by other monks, that the latter possibility is by far the most likely.

Are you even working on the code you think you're working on? Have you inadvertently started working on a different set of similar or identical files? I remember a jolly hour or two I once spent debugging some C/C++ code. I happily tried one fix after another; none had any effect. I finally noticed that one of the changes I had made was not syntactically correct, but had compiled anyway. I tried inserting the magical  snifiasdha; statement and compiling again. The compiler was still happy. The penny finally dropped. It turned out that another programmer had placed a huge block of code into a

#if 0 ... ... #endif
"block comment" that my syntax highlighter could not detect, and I had been "debugging" dead code. Massive facepalm. Thus do we live and learn.


Give a man a fish:  <%-{-{-{-<


In reply to Re: print statements in perl pakages seem to be masked from STDOUT by AnomalousMonk
in thread print statements in perl pakages seem to be masked from STDOUT by holandes777

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.