![]() |
|
Welcome to the Monastery | |
PerlMonks |
Re: how to control/redirect print()by hesco (Deacon) |
on Apr 03, 2011 at 01:47 UTC ( #897139=note: print w/replies, xml ) | Need Help?? |
I don't remember the details of how I did this, but this was necessary for a module I published years ago to CPAN, Test::MonitorSites. A review of that code will likely turn up some useful clues. UPDATE: OK, this seems to be the code which did the trick:
-- Hugh
if( $lal && $lol ) { $life++; } if( $insurance->rationing() ) { $people->die(); }
In Section
Seekers of Perl Wisdom
|
|