Perl Modules, Risc OS and File Types
[email protected] ("Richard Proctor") Thu, 6 Jul 2000 13:28:19 +0100
| Newsgroups | perl.riscos |
|---|---|
| Message-ID | <[email protected]> |
Is there a better way we could name perl modules in RiscOs Perl? Currently a module is called "Common/pm", which includes the "/pm" as part of the name used by perl to find a module. On Risc OS < 4, long module names get truncated so I have other modules "GlobalData" and "Local_Data", which being 10 chars long dont have the "/pm" at the end. I believe perl tries to find "GlobalData/pm" but the "/pm" is silently ignored. I have just upgraded to RO4 on one machine, now I have problems, on RO4 it looks for "GlobalData/pm" and does not find it if I have simply copied the file from the another machine. My short term soloution is to run a little (perl) program after I copy a bunch of perl modules across to look for perl modules and append the "/pm" on the name if necessary. I have defined a FileType for all perl modules, that makes this easy to do. The particular FileType Number I use is not suitable for wide use - 008, though I do have a filetype (xxx cant remember what) that was assigned years ago to me and never used, (I had 4 assigned but only ever used 3 for !Arctic). I think it would be better if perl did not need the file names to have the "/pm" in the name, but used the basic name, or possibly a file type, as alternitives. Thoughts anybody? Richard (at work)