http://qs321.pair.com?node_id=1011850


in reply to How can I see a CPAN module's print message

If this code is in a package called "TieRegistry", you will not see the output from print statements outside of any methods (subroutines) in that module just by typing "use TieRegistry"

If the print statements are in a subroutine in the package TieRegistry:

package TieRegistry; use strict; use Carp; sub new { my $class = shift; my $self = bless {}, $class; } sub PrintThis { print "my print message\n"; }

And then in your main program, after "use TieRegistry", you had:

my $test = TieRegistry->new; $test->PrintThis;

The line "my print message" would print.