unclesmiff has asked for the wisdom of the Perl Monks concerning the following question:

I've got another question - the Perl Programming says I can get see what is being imported into my package like this;

BEGIN { $Exporter::Verbose=1 } use packe;
I also try this;
BEGIN { require packe; $Exporter::Verbose=1; packe->import(); }
but don't see any out put on the screen..

Replies are listed 'Best First'.
Re: Exporter Verbose
by davido (Cardinal) on Feb 22, 2006 at 18:49 UTC

    What is in packe's @EXPORT list?

    Another thing to consider is that the BEGIN block must appear chronologically in the file before your use packe; command.


    Dave

      this is the package packe;

      package packe; use Exporter; our @ISA = qw(Exporter); our @EXPORT = qw($camel %wolf ram); # exported by default sub ram { print "ram\n"; } $camel = "camel"; %wolf = ( 'wolf' , 2 ); 1;