Problems? Is your data what you think it is? | |
PerlMonks |
Re^3: print statements in perl pakages seem to be masked from STDOUTby 1nickt (Canon) |
on Mar 07, 2018 at 17:32 UTC ( [id://1210464]=note: print w/replies, xml ) | Need Help?? |
The answer is a conditional "yes" as described by Corion and stevieb. If you are suspicious that STDOUT has been overridden, you could always open your own filehandle and print your debug statements to a file. But if does not work, then you may not have opened your filehandle successfully, or it may not be stored in the variable you think it is. Did you check?
The way forward always starts with a minimal test.
In Section
Seekers of Perl Wisdom
|
|