in reply to Re: constants in multiple libraries
in thread constants in multiple libraries
Because then, Foo is not part of Bar::, but part of main::, which is probably what you really want. I say this because it sounds like you want package Foo to be able to be used independently of Bar, so it shouldnt ever be tied strictly to Bar, because once it is, thats the only place it'll get put...unless you do some serious hand-waving.#File Bar.pm use Foo; package Bar; sub make_bar { main::make_foo(); # It is defined here. # do stuff }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: constants in multiple libraries
by JediWizard (Deacon) on Sep 20, 2004 at 14:23 UTC |