in reply to Re^6: error for undefined function that's been imported
in thread error for undefined function that's been imported
No, my discussion was dealing with the case of multiple "package" statements in one .pm file. The code you cite won't get an undefined sub but will pick up Bellman::foo. Sorry if this wasn't clear.
Now, since that's how I've been operating, and it seems that's not going to be possible (which I'll accept), what's the next best thing? what sort of coding styles might I adopt to alleviate this problem and still have my code look elegant and easy to read/edit by others?
Consider an object orientated approach. This avoids package namespace problems, as objects carry their own class (namespace) with them. see perlboot perltoot and perlobj for more on this subject.
--
Oh Lord, won’t you burn me a Knoppix CD ?
My friends all rate Windows, I must disagree.
Your powers of persuasion will set them all free,
So oh Lord, won’t you burn me a Knoppix CD ?
(Missquoting Janis Joplin)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: error for undefined function that's been imported
by argv (Pilgrim) on Aug 17, 2005 at 07:24 UTC |