Re: .mhonarc.mrc corrupts @INC?

2001-12-26 12:32:22
That did it! 


On Mon, 24 Dec 2001, Earl Hood wrote:

On December 21, 2001 at 16:23, Brian McEntire wrote:

the when I run mhonarc, I get the following output and it fails to run. 
(If i remove the .mhonarc.mrc file, mhonarc runs fine):

This is MHonArc v2.5.2, Perl 5.006001 linux
Reading resource file: /usr/local/lib/perl5/site_perl/5.6.1/.mhonarc.mrc 

Can't locate in @INC (@INC contains: lib 
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux </TTITLE>
 /usr/local/lib/perl5/5.6.1/i686-linux /usr/local/lib/perl5/5.6.1 
/usr/local/lib/perl5/site_perl .) at 
/usr/local/lib/perl5/site_perl/5.6.1/ line 443.

** It looks like somehow the existence of .mhonarc.mrc is causing part of 
that file to be included in the @INC array in PERL

The problem has to do with the use of Perl's $_ variable.  If you
add the line:

    local $_;

At the beginning of the routine read_resource_file in, this
will fix the problem.


<Prev in Thread] Current Thread [Next in Thread>