Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by stevieb (Canon)
on Mar 07, 2018 at 17:07 UTC ( [id://1210461]=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

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.

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-24 12:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found