[MacPerl-Porters] MacPerl 5.7.3 @INC and eval bug?

[email protected] (Thomas Wegner) Tue, 28 May 2002 20:49:03 +0200
Newsgroups perl.macperl.porters
Message-ID <p04320400b919719e844e@[149.225.71.67]>
Greetings,

while working on blib.pm & blib.t, I've noticed something that looks 
like a bug in MacPerl 5.7.3 (although it looks harmless compared to 
that Encode thing ;-).

Take this little script

     #! perl -w

     @INC = '../lib';

     print "INC before eval is ---@INC--- \n";
     eval 'use File::Spec;'; # seems to happen with any module
     print "INC after eval is ---@INC--- \n";
     __END__

In MacPerl 5.6.1r1 this gives
     INC before eval is ---../lib---
     INC after eval is ---../lib---

But in MacPerl 5.7.3 the result is
     INC before eval is ---../lib---
     INC after eval is ---../lib:---

(notice the trailing ':' in ../lib: after the eval statement), which 
is odd. Any ideas why this happens, or does it happen only to me? If 
it can be reproduced, I'll file a bug report.


Best regards,

--Thomas