Hi Jeff, that would be a solution. I wanted to be lazy and don't use the complete path. If there is no other solution I just will make a A/Type.pm
thanks Martin Jeff Pang schrieb: > 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 > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/