Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: print statements in perl pakages seem to be masked from STDOUT

by 1nickt (Canon)
on Mar 07, 2018 at 17:32 UTC ( [id://1210464]=note: print w/replies, xml ) Need Help??


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

print {$self->{fileout}} "what I want to print\n";
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.

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
    Thank you, I will check that and report back.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1210464]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-03-29 13:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found