evgen-i has asked for the wisdom of the Perl Monks concerning the following question:
I have written a module called English.pm. A module from the standard perl distribution has the same name. This was not a problem under Linux, but now I started using my script with Strawberry Perl under Windows. For some reason it loads the wrong module, namely the standard English.pm instead of my module!
Question: is there a way to keep my package name "English", but that the correct module is loaded?
My alternative would be to rename it to Preprocessing::English or something like that, but in that case I would prefer not to put the English.pm file in the Preprocessing/ subfolder, but keep it where it is now, namely where the script is that uses it. Is that possible?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Package name overlap
by Dallaylaen (Chaplain) on Feb 19, 2013 at 15:23 UTC | |
|
Re: Package name overlap
by ww (Archbishop) on Feb 19, 2013 at 17:02 UTC | |
|
Re: Package name overlap
by MidLifeXis (Monsignor) on Feb 19, 2013 at 15:18 UTC | |
|
Re: Package name overlap
by Anonymous Monk on Feb 19, 2013 at 14:17 UTC | |
|
Re: Package name overlap
by manorhce (Beadle) on Feb 19, 2013 at 14:33 UTC | |
by Anonymous Monk on Feb 19, 2013 at 14:43 UTC |