newsclipperdevlist  

Config file inclusion problem

Chris Pimlott
Fri, 20 Aug 1999 22:42:57 -0700

        I've got something weird happening when NC tries to read the
config file.

        I've got it as ~/.NewsClipper/NewsClipper.cfg.  I get the
following -

[chris@moebius ~]$ NewsClipper.pl 
NewsClipper.cfg did not return a true value at /usr/bin/NewsClipper.pl
line 134.

        Now, I didn't take the 1; line out of the config file (I tried
copying the default config over to make sure it wasn't something I did, no
change).  The problem is obviously in the 'require $tempFile;' line on
132.  But why it doesn't get the proper return value is utterly beyond me.
It definately has the proper path in @INC.  If I make a dummy program
that's just

#!/usr/bin/perl

use '/home/chris/.NewsClipper/NewsClipper.cfg';

        it works no problem.

        All I can figure is it's some sort of goofy perl bug.  I have perl
5.004_4 installed on my computer (the exact files are from a redhat
package, should be perl-5.004-6.i386.rpm or something like that).  I did a
quick install on another linux box with perl 5.005_03 and it seems to work
fine.  I plan to update my perl anyhow, but my computer lives on the
skinny end of a pipe (cough modem cough) and perl distributions aren't
tiny.  Of course, it'd be useful if anyone else has this version to see if
it has to do with that.

        Other than that, I can't see why it should have a problem with
require in this circumstance.

(BTW, I can't be the only one who keeps wanting to type DailyUpdate all
the time before I remind myself...)

        Chris


-
If you would like to unsubscribe from this mailing list send an email to 
[EMAIL PROTECTED] with the body "unsubscribe newsclipperdevlist 
YOUR_EMAIL_ADDRESS" (without the quotes) or use the form provided at 
http://www.NewsClipper.com/TechSup.htm#MailingList.
  • Config file inclusion problem Chris Pimlott