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).
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.