in reply to IO::Scalar on Apache Weirdness
Then I commented out the "close" line, and it worked! I'm not sure why -- I would have expected to at least see "output:" no matter what.#!/usr/local/bin/perl print "Content-type: text/html\n\n"; use IO::Scalar; my $output; my $SH = tie *STDOUT,'IO::Scalar', \$output; print "hey\n"; $result = "output: $output"; close $SH; untie *STDOUT; print $result;
|
---|