in reply to distribution config file
I personally use __FILE__ to determine where the module is, and then determine the path seperator from that (although, I've never tested it on a non-unix system), and build the path to look at from there.
if (!defined($__registryDir)) { $__registryDir = __FILE__; ($__pathSeperator) = ($__registryDir =~ m/\bVSO\b(.*?)\bRegist +ry/ ); $__registryDir =~ s/\.pm$/${__pathSeperator}data/; }
(the module is 'Physics::Solar::VSO::Registry', so I know that the characters between 'VSO' and 'Registry' should be the path seperator).
I think there's a way to get the path seperator from the perl config, also.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: distribution config file
by rinceWind (Monsignor) on Jun 19, 2006 at 15:27 UTC | |
by IOrdy (Friar) on Jun 20, 2006 at 00:22 UTC |