The faster/easier way to do that is:
Note also that you're creating $mySTDOUT and $oldSTDOUT and not actually using them anywhere. $mySTDOUT is not the same thing as *mySTDOUT!{ local *STDOUT; open STDOUT, '>/dev/null'; # do stuff that may print out. }
In reply to Re^2: Suppressing console output
by Tanktalus
in thread Suppressing console output
by loris
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |