in reply to Re: 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?
No the code you initially provided was broken in multiple ways.
Once you "fixed" it, it exported. This is interesting, and it's worth understanding how you did it, so I'm glad you made that contributuion. (I still think it's a really bad idea for reasons stated elsewhere.)
Also, even "fixed", its "use strict" and "use warnings" still have no effect, which is expected from an understanding that these pragma apply lexically.
I often test code before I post it here. If I don't test it, I usually manage to remember to say "untested" somewhere, in a noticeable fashion. I think doing one of those 2 things is important. But I may have been "over the top" in my previous.
--Bob Niederman, http://bob-n.com
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: How do I make one package use a module from another package?
by jryan (Vicar) on Jul 23, 2003 at 05:39 UTC | |
by bobn (Chaplain) on Jul 23, 2003 at 13:32 UTC | |
by jryan (Vicar) on Jul 23, 2003 at 15:45 UTC | |
by bobn (Chaplain) on Jul 23, 2003 at 17:00 UTC |