in reply to Re^2: print statements in perl pakages seem to be masked from STDOUT
in thread print statements in perl pakages seem to be masked from STDOUT
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?print {$self->{fileout}} "what I want to print\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: print statements in perl pakages seem to be masked from STDOUT
by holandes777 (Scribe) on Mar 07, 2018 at 18:18 UTC |