RandomWalk has asked for the wisdom of the Perl Monks concerning the following question:
My module, common.pm, sits in directory Rose under perl5. It starts off likeuse lib "/home/me/lib/perl5";
Inside main, return_address is called withcommon.pm sub return_address{ print "rose garden"; } ... 1;
but not withcommon::return_address();
for then the subroutine is undefined. So I'm doing something wrong; tachyon uses this last form in "Simple Module Tutorial" for example. Besides, what about my other directory of modules, Tulip which also contains a package common.pm. How do I call it from main? Begging your pardon for my errors and thanking you for your advice, RWRose::common::return_address();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: modules and namespace
by chromatic (Archbishop) on Nov 20, 2003 at 21:59 UTC | |
by RandomWalk (Beadle) on Nov 20, 2003 at 22:34 UTC |