2007/5/8, Martin Barth <[EMAIL PROTECTED]>:


but now I dont know to import the stuff. I can't do a "use A::Type 
qw(:standard)" because I dont have A/Type.pm
do you have any suggestions how this can be done?


Hello,

How about using full package path?like,

$ cat A.pm
package A;
sub test1 {}
sub test2 {}

package A::Type;
#use base qw/Exporter/;
#our @EXPORT = qw/test3 test4/;

sub test3 { print "this is routine of test3\n" }
sub test4 { print "this is routine of test4\n" }


1;

$ perl -MA -e 'A::Type::test3'
this is routine of test3



--
Chinese Practical Mod_perl book online
http://home.arcor.de/jeffpang/mod_perl/

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to