develooper Front page | perl.perl5.porters | Postings from October 2018

Re: [perl #133558] perl 5.26: use lib pragma issue in IBM AIX

Thread Previous | Thread Next
From:
Dave Mitchell
Date:
October 8, 2018 21:14
Subject:
Re: [perl #133558] perl 5.26: use lib pragma issue in IBM AIX
Message ID:
20181008211350.GJ3102@iabyn.com
On Mon, Oct 08, 2018 at 03:25:30PM +0530, Gururaj Kallur wrote:
> -bash-4.2$ perl -le'unshift @INC, "/foo/bar", @INC; print for @INC'
> /foo/bar
> /scratch/gkallur/perl/lib/5.26.1/aix-thread-multi-64all
> /scratch/gkallur/perl/lib/5.26.1
> /scratch/gkallur/perl/lib
> ../lib/site_perl/5.26.1/aix-thread-multi-64all
> ../lib/site_perl/5.26.1
> ../lib/5.26.1/aix-thread-multi-64all
> ../lib/5.26.1
> /scratch/gkallur/perl/lib/5.26.1/aix-thread-multi-64all
> /scratch/gkallur/perl/lib/5.26.1
> /scratch/gkallur/perl/lib
> ../lib/site_perl/5.26.1/aix-thread-multi-64all
> ../lib/site_perl/5.26.1
> ../lib/5.26.1/aix-thread-multi-64all
> ../lib/5.26.1

Is that the exact output, with most of the lines duplicated, or was that a
cut+paste error?

Can you show the output of 'perl -V' on the bad system.

I'm kind of running out of suggestions here. I think we may have reached
the point where you will have to do some diagnosis of this yourself:

make a backup copy of  

    /scratch/gkallur/perl/lib/5.26.1/aix-thread-multi-64all/lib.pm

then start to edit that file, putting in debugging "print" statements
at various points in the 'import' subroutine, to confirm that with
"use lib '/foo/bar'",
    * the expected lib.pm file is being loaded rather than some other
      version;
    * the import() sub from that file is being called, and with the
      expected arguments,
    * that import() is executing one or more of the lines which do
    * 'unshift @INC, ...', and print the contents of @INC just before
      and after such lines;
    * print the contents of @INC just before import() returns.
    * etc
to try and work out what is happening.




-- 
The Enterprise successfully ferries an alien VIP from one place to another
without serious incident.
    -- Things That Never Happen in "Star Trek" #7

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About