jeanluca has asked for the wisdom of the Perl Monks concerning the following question:
Well, this doesn't work. It works when I call test like:A::test(), but in that case I can replace# main use base qw(A) ; &test() ; package A ; sub test { }
So I assume package A has to export its subs, right ?use base qw(A) ; to use A ;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: 'use base' issue
by adrianh (Chancellor) on Mar 08, 2006 at 11:00 UTC | |
|
Re: 'use base' issue
by davorg (Chancellor) on Mar 08, 2006 at 11:04 UTC | |
by gargle (Chaplain) on Mar 09, 2006 at 10:25 UTC | |
|
Re: 'use base' issue
by jeanluca (Deacon) on Mar 08, 2006 at 11:11 UTC |