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:
Gururaj Kallur
Date:
October 9, 2018 06:54
Subject:
Re: [perl #133558] perl 5.26: use lib pragma issue in IBM AIX
Message ID:
CAEbNYu6DKQ-Sff_PKw-BQ4W+c=VUE5Gk_s=C5Bm-cRcc3iA0ig@mail.gmail.com
It is not going inside foreach loop in import subroutine.
If I remove the "reverse" from the "foreach (reverse @_) {" in import
subroutine
Then it is going inside the foreach loop. Here is the output after removing
"reverse" from foraeach

-bash-4.2$  perl -le'use lib "/foo/bar"; print for @INC'
**** Arguement passed : /foo/bar
**** After UNSHIFT in foreach loop : /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
**** After foreach loop : /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
**** Before return statement : /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
/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

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