On Wed, 2003-11-19 at 00:36, [EMAIL PROTECTED] wrote:
> > On Tue, 2003-11-18 at 03:57, [EMAIL PROTECTED] wrote:
> > > I was just wondering if there is a way of telling pp to clean out @INC so t
> > hat only the coderef is included?
> > 
> > Isn't that already the case (PAR 0.76) - except for "."?
> > 
> > > pp -o inc.exe -e "print [EMAIL PROTECTED] = @INC\n]"
> > > inc.exe
> > @INC = CODE(0xd2ff60) .
>
> Hmm, not for me for some reason:
> # pp -o inc -e 'print "@INC\n"'
> # ./inc
> CODE(0x84539c8) /usr/local/lib/perl-local 
> /usr/local/lib/perl5/5.8.1/i386-freebsd-64int /usr/local/lib/perl5/5.8.1 
> /usr/local/lib/perl5/site_perl/5.8.1/i386-freebsd-64int 
> /usr/local/lib/perl5/site_perl/5.8.1 /usr/local/lib/perl5/site_perl .
> 
> pp -V
> Perl Packager, version 0.05 (PAR version 0.76)

Strange. My result above was for PAR 0.76, Perl 5.8.0 on WinXP.
I get results similar to yours for PAR 0.76, Perl 5.8.2 on Linux:

$ pp -o inc -e 'print "@INC\n"'
$ ./inc
CODE(0x840c5e0) /etc/perl /usr/local/lib/perl/5.8.2
/usr/local/share/perl/5.8.2 /usr/lib/perl5 /usr/share/perl5
/usr/lib/perl/5.8.2 /usr/share/perl/5.8.2 /usr/local/lib/site_perl
/usr/local/lib/perl/5.8.0 /usr/local/share/perl/5.8.0 .

BTW, inc exits with a segmentation fault after that.

Cheers, Roderich

Reply via email to