[Israel.pm] print() from within module
ran.eilam at gmail.com
Thu Mar 22 11:21:40 PDT 2007
And some more options, besides buffering and the program not even getting there:
* your code is not running from a shell, but from a web server or
something, so STDOUT is not immediately obvious
* CORE::print() can't be replaced, but someone could do (often done
because of Test::Builder and TAP):
perl -MIO::Scalar -e 'tie *STDOUT, "IO::Scalar", \$x; print "nothing printed" '
* or somebody could be doing something really devious, e.g.
perl -MTerm::ANSIColor -e 'print colored ["black on_black"], "unseen" '
More information about the Perl