Great Circle Associates Majordomo-Workers
(September 2000)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: RTFM problem? Perl problem? Mj2 problem?
From: Jason L Tibbitts III <tibbs @ math . uh . edu>
Date: 29 Sep 2000 22:09:07 -0500
To: majordomo-workers @ GreatCircle . COM
Cc: mj2-dev @ csf . colorado . edu
In-reply-to: Jason L Tibbitts III's message of "29 Sep 2000 19:29:23 -0500"
References: <Pine.BSI.4.21.0009291617230.18047-100000@castro.queernet.org> <ufag0miyb6k.fsf@epithumia.math.uh.edu>
User-agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7

OK, I've chased this for a while and have come down to this:

$/ (the input record separator) is getting hosed.  Now, we don't set $/
anywhere in our code _and_ I've verified that it is "\n" like it's supposed
to be just before the the problem areas.  But when getline gets called, it
slurps the entire file and spews the errors.

My guess is that it's Term::Readline that's causing the problem.  Note that
I don't have Term::ReadKey or Term::ReadLine::Perl installed on the machine
where the problem strikes.  On another machine with pretty much the same
software but with Term::ReadKey installed, the problem doesn't happen.
Term::ReadLine also plays with $/, but all it does is:

  local ($/) = "\n";

in one place.

Setting $/ just prior to where the warnings first hit (in
Majordomo::substitute_vars) makes the problem go away.

 - J<



Follow-Ups:
References:
Indexed By Date Previous: Re: RTFM problem? Perl problem? Mj2 problem?
From: David Miller <justdave@a2central.com>
Next: Re: Development assistance offered (was Re: The future of majordomo)
From: Jason L Tibbitts III <tibbs@math.uh.edu>
Indexed By Thread Previous: Re: RTFM problem? Perl problem? Mj2 problem?
From: Jason L Tibbitts III <tibbs@math.uh.edu>
Next: Re: RTFM problem? Perl problem? Mj2 problem?
From: Jason L Tibbitts III <tibbs@math.uh.edu>

Google
 
Search Internet Search www.greatcircle.com