-----Original Message-----
From: Piyush Verma
Sent: Wednesday, April 03, 2013 10:28 PM
To: sisyph...@optusnet.com.au
Cc: inline@perl.org
Subject: Re: Hitting issue of Inline::Config existance
I checked with Inline directory Inline:Config is not present.
[root@prome-2s-dhcp82 5.10.0]# perl -MInline::Config -le
'for(keys(%INC)){print "$_: $INC{$_}"}'
Can't locate Inline/Config.pm in @INC (@INC contains: /root/workspace/vtaf
/usr/local/lib/perl5/5.10.0/i686-linux-thread-multi-64int
/usr/local/lib/perl5/5.10.0
/usr/local/lib/perl5/site_perl/5.10.0/i686-linux-thread-multi-64int
/usr/local/lib/perl5/site_perl/5.10.0 .).
BEGIN failed--compilation aborted.
Could there be any other reason of this issue/ or at run time this module
is generate while running the code.
This script demonstrates that Inline::Config does not have to be loaded for
%main::Inline::Config:: to be true:
#######################################
#!perl
$Inline::Config::some{'key'} = 'val';
if(%main::Inline::Config::) {
for(keys(%main::Inline::Config::)) {
print "$_\n";
}
}
#######################################
For me, that outputs:
some
So ... let's see the keys your %main::Inline::Config:: contains.
Find the lib/auto/Inline/check_config_file.al that was installed and, in
that file, just before the line:
croak M14_usage_Config() if %main::Inline::Config::;
insert this code (from above script):
if(%main::Inline::Config::) {
for(keys(%main::Inline::Config::)) {
print "$_\n";
}
}
Then run your troublesome script, and see if we can make any sense of the
keys that are reported.
(At this stage I have absolutely no idea what the problem is.)
Cheers,
Rob