Nov 8, 2004, 12:07 PM
Post #3 of 3
Re: [KevinR] suppress print statements during "do" call
[In reply to]
I don't want to edit some.cgi to not print because it is being used in other scenarios and removing the print will affect others. So, my script is utilizing it, but doesn't want the print statements coming through.
Also, require and use aren't useful here, because I want the script to run from beginning to end as usual, not just call certain subroutines.
Anyhow, I've found a solution - redirecting STDOUT has allowed me to suppress the print statments.