open *MYOUTPUT, '>>', \$handler;
my $stdout = select *MYOUTPUT;
print "This is not going to STDOUT, is going to the handler var\n";
print "This too\n";
print "This should go out normally\n";
print "And, this is what I received in the handler var:\n";
Open in new window
Get your personalized solution.
Please provide your email to receive a sample view!
*This site is protected by reCAPTCHA and the Google
Terms of Service apply.
Please enter a first name
Please enter a last name
8+ characters (letters, numbers, and a symbol)
Take hold of your future.