in reply to Re^3: Export and use different package in module
in thread Export and use different package in module
Library2 is outside of my control (not inherently), but I shouldn't have to modify the library if I'm not expecting to export stuff from IT, only make writing functions using the namespace easier. The library is actually Device::BCM2835, and since using functions in it also should be using values from it, I get things like
#inside a function Device::BCM2835::gpio_fsel ( Device::BCM2835::RPI_V2_GPIO_P1_12, Devic +e::BCM2835::BCM2835_GPIO_FSEL_ALT5 );
instead of
package Device::BCM2835; #some place later in a function gpio_fsel(RPI_V2_GPIO_P1_12, BCM2835_GPIO_FSEL_ALT5);
I found the our definition and then modification works with the hash, but it doesn't work with a sub even though I declare the sub the same way! If I try our sub, it's experimental.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Export and use different package in module
by haukex (Archbishop) on Feb 22, 2019 at 21:11 UTC | |
by chenhonkhonk (Acolyte) on Feb 22, 2019 at 22:27 UTC | |
by haukex (Archbishop) on Feb 22, 2019 at 23:29 UTC | |
by chenhonkhonk (Acolyte) on Feb 23, 2019 at 06:10 UTC | |
by haukex (Archbishop) on Feb 23, 2019 at 09:36 UTC | |
|