Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: How to print called program to stdout

by TorontoJim (Beadle)
on Mar 18, 2016 at 20:01 UTC ( [id://1158276]=note: print w/replies, xml ) Need Help??


in reply to Re: How to print called program to stdout
in thread How to print called program to stdout

This may not be what you're looking for, but when I'm testing a script, I redirect STDERR to print to STDOUT. That way I can pepper my script with print statements to see what is going on so that I can debug it. This is how I do it:

BEGIN { $| = 1; open(STDERR, ">&STDOUT"); print "Content-type: text/html\n\n"; }

Hope that assists you.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-19 23:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found