Konstrukt::PrintRedirector - Catches the print statements and fires an event on each print.
#activate $Konstrukt::PrintRedirector->activate(); #print some stuff that should be catched and put into the parsing tree print 'stuff'; #deactivate $Konstrukt::PrintRedirector->deactivate();
If activated, all print()'s will be intercepted and an event Konstrukt::PrintRedirector::print with the arguments that were printed will be fired. So you have to register an object method for this event (see Konstrukt::Event for more information).
Konstrukt::PrintRedirector::print
Constructor of this class
Initialization of this class.
Activates the print catcher.
Deactivates the print catcher.
Copyright 2006 Thomas Wittek (mail at gedankenkonstrukt dot de). All rights reserved.
This document is free software. It is distributed under the same terms as Perl itself.
Konstrukt::Plugin::perl, Konstrukt
To install Konstrukt, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Konstrukt
CPAN shell
perl -MCPAN -e shell install Konstrukt
For more information on module installation, please visit the detailed CPAN module installation guide.