----- Original Message -----
From: "Brian Ingerson" <[EMAIL PROTECTED]>
>
> This problem is happening at line 431 of Inline.pm.
>
> my $realpath = $INC{$realname}
> or croak M27_module_not_indexed($realname);
>
> If you could add a line:
>
> print "--> $realname\n";
>
> And send me the output, that would help.
>
I inserted that line immediately above the code that croaks.
When I run a script that uses Math::Simple I get:
--> Math\Simple.pm
You are attempting to load an extension for 'Math\Simple.pm',
but there is no entry for that module in %INC.
So I got a print of '%INC', and there's no key called 'Math\Simple.pm'.
There *is* a key called 'Math/Simple.pm'.
Its associated value is:
D:/Perl/site/lib/Math/Simple.pm
which is the correct path.
So I ran (in Inline.pm) a regex to change the backslash in $realname to a
forward slash. Now I get the error:
Can't calculate a path from 'D:/Perl/site/lib/Math/Simple.pm' in %INC
That puzzles me. My complete %INC printout (key: value):
Exporter.pm: D:/Perl/lib/Exporter.pm
Carp.pm: D:/Perl/lib/Carp.pm
Inline/denter.pm: D:/Perl/site/lib/Inline/denter.pm
D:/Perl/site/lib/auto/Inline/denter/autosplit.ix: D:/Perl/site/lib/auto/Inl
ine/denter/autosplit.ix
File/Spec/Unix.pm: D:/Perl/lib/File/Spec/Unix.pm
Exporter/Heavy.pm: D:/Perl/lib/Exporter/Heavy.pm
File/Spec.pm: D:/Perl/lib/File/Spec.pm
File/Spec/Win32.pm: D:/Perl/lib/File/Spec/Win32.pm
strict.pm: D:/Perl/lib/strict.pm
base.pm: D:/Perl/lib/base.pm
vars.pm: D:/Perl/lib/vars.pm
Config.pm: D:/Perl/lib/Config.pm
warnings/register.pm: D:/Perl/lib/warnings/register.pm
warnings.pm: D:/Perl/lib/warnings.pm
Inline.pm: D:/Perl/site/lib/Inline.pm
AutoLoader.pm: D:/Perl/lib/AutoLoader.pm
Cwd.pm: D:/Perl/lib/Cwd.pm
Math/Simple.pm: D:/Perl/site/lib/Math/Simple.pm
Why is it that of all those modules, it is only Math/Simple.pm for which a
path can't be calculated ?
Cheers,
Rob