anaconda_wly has asked for the wisdom of the Perl Monks concerning the following question:
##Hi, happy new year perl monks! 1. I had add print message in a CPAN's module. But I didn't see any in output. Did they redirect it to somewhere else? 2. I see croak and carp used in a CPAN module. I add some in my code to display some message. But when I run, I didn't see any on screen, why Thanks! ##
Yes, as roboticus said, one error. I modified my question as this:
I want to trace the process of a module, say TieRegistry. So I add some print messge to it. For simple like below:
use vars qw( $RegObj %_Roots %RegHash $Registry ); carp "my print message\n ";#no print print "my print message\n ";#no print
The two lines are in a global place out of any function. So I think in my code, it will print the messages at the place of use, right?
I didn't see either of them.use TieRegistry
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How can I see a CPAN module's print message
by roboticus (Chancellor) on Jan 06, 2013 at 07:37 UTC | |
Re: How can I see a CPAN module's print message
by live4tech (Sexton) on Jan 06, 2013 at 08:39 UTC | |
by anaconda_wly (Scribe) on Jan 06, 2013 at 09:06 UTC | |
by Corion (Patriarch) on Jan 06, 2013 at 09:20 UTC | |
by tobyink (Canon) on Jan 06, 2013 at 10:01 UTC | |
by anaconda_wly (Scribe) on Jan 06, 2013 at 10:15 UTC | |
by Anonymous Monk on Jan 06, 2013 at 09:15 UTC | |
Re: How can I see a CPAN module's print message
by live4tech (Sexton) on Jan 06, 2013 at 07:34 UTC | |
Re: How can I see a CPAN module's print message
by Anonymous Monk on Jan 06, 2013 at 07:49 UTC |
Back to
Seekers of Perl Wisdom