in reply to Re: Re: How do I make one package use a module from another package?
in thread How do I make one package use a module from another package?
What about doing this?:
package whatever; require Exporter; use anything; push(@EXPORT, @anything::EXPORT);
I got this snippet from the source of LWP::Simple. I am not sure what is going on, but it worked. But I can't export strict for some reason. I could export other modules like diagnostics. What is going on here? And is your way better? Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: How do I make one package use a module from another package?
by jryan (Vicar) on Jul 23, 2003 at 03:06 UTC |