[TriLUG] Perl include path problem

Jeremy Portzer jeremyp at pobox.com
Mon Apr 28 16:21:17 EDT 2003


On Mon, 2003-04-28 at 15:38, Brent Verner wrote:
> [2003-04-28 15:06] Jeremy Portzer said:

> | bash$ /home/foo/apps/perl/bin/perl -I/home/foo/apps/perl/lib
> | migration.pl -v
> | Can't locate strict.pm in @INC (@INC contains:
> | /usr/local/foo/apps/perl/lib/5.6.1/i686-linux
> | /usr/local/foo/apps/perl/lib/5.6.1
> | /usr/local/foo/apps/perl/lib/site_perl/5.6.1/i686-linux
> | /usr/local/foo/apps/perl/lib/site_perl/5.6.1
> | /usr/local/foo/apps/perl/lib/site_perl .) at migration.pl line 9.
> | BEGIN failed--compilation aborted at migration.pl line 9.
> 
> I suspect the migrate.pl script is mucking with @INC in a BEGIN
> block.

YEP!  That's it.. thanks so much.  Indeed the @INC was being overridden
in the script (for no good reason IMO).  It was well below line 9, but
in a BEGIN block.  Now, a sane coder would have actually put the BEGIN
block at the beginning, right?  Ugh.
 
> If it isn't, perhaps a rebuild of perl is in order :-)
> 

Good thing I didn't have to go that route, as I have no sources for this
modified Perl. :-(   I'm not entirely sure this particular proprietary
software vendor has completely complied with the terms of the Artistic
License either -- it's certainly not GPL compliant.  But that's another
story...

--Jeremy

-- 
/=====================================================================\
| Jeremy Portzer       jeremyp at pobox.com       trilug.org/~jeremy     |
| GPG Fingerprint: 712D 77C7 AB2D 2130 989F  E135 6F9F F7BC CC1A 7B92 |
\=====================================================================/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://www.trilug.org/pipermail/trilug/attachments/20030428/1b8358ae/attachment.pgp>


More information about the TriLUG mailing list