No such thing as a small change | |
PerlMonks |
Re^3: print statements in perl pakages seem to be masked from STDOUTby stevieb (Canon) |
on Mar 07, 2018 at 17:07 UTC ( [id://1210461]=note: print w/replies, xml ) | Need Help?? |
My question is: should I expect a print statement to provide output on STDOUT as it does when the print statement is in the main body of the .pl? You should definitely see the print statements on STDOUT from a module, just like the script, unless the module is hijacking STDOUT somehow per Corion's post above.
In Section
Seekers of Perl Wisdom
|
|