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 19:29:23 -0500
To: majordomo-workers @ GreatCircle . COM, mj2-dev @ csf . colorado . edu
In-reply-to: "Roger B.A. Klorese"'s message of "Fri, 29 Sep 2000 16:19:04 -0700 (PDT)"
References: <Pine.BSI.4.21.0009291617230.18047-100000@castro.queernet.org>
User-agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7

[Please note CC to mj2-dev]

>>>>> "RBAK" == Roger B A Klorese <rogerk@QueerNet.ORG> writes:

RBAK> I've got a built and tested Mj2 up and running on a system running
RBAK> BSD/OS 3.1, perl 5.6.0.

Odd.  I see it too, in Linux, with perl 5.005_03, but only in interactive
mode.  The code in question (in IO::Handle) is:

sub getline {
    @_ == 1 or croak 'usage: $io->getline()';
    my $this = shift;
    return scalar <$this>;
    ^^^^^^^^^^^^^^^^^^^^^
}

mj_shell doesn't call getline, and there shouldn't be any difference in the
internals between interactive and command-line modes.  I'll try to get a
good backtrace out.  Hmmm:

Use of uninitialized value at /usr/lib/perl5/5.00503/i386-linux/IO/Handle.pm line 391, <GEN21> chunk 1.
	main::__ANON__('Use of uninitialized value at /usr/lib/perl5/5.00503/i386-linux/...') called at /usr/lib/perl5/5.00503/i386-linux/IO/Handle.pm line 391
	IO::Handle::getline('IO::File=GLOB(0x867f714)') called at blib/lib/Majordomo.pm (autosplit into blib/lib/auto/Majordomo/get_chunk.al) line 1641
	Majordomo::get_chunk('Majordomo=HASH(0x84a782c)', 'HASH(0x86293d4)', 1000) called at /home/tibbs/mj/2.0-snap/lib/Majordomo.pm line 446
	Majordomo::dispatch('Majordomo=HASH(0x84a782c)', 'HASH(0x86293d4)', 1000) called at blib/lib/Mj/Format.pm (autosplit into blib/lib/auto/Mj/Format/g_get.al) line 1310
	Mj::Format::g_get('Help failed.', 'Majordomo=HASH(0x84a782c)', 'GLOB(0x80c88e4)', 'GLOB(0x80c88e4)', 'text', 'HASH(0x86293d4)', 'ARRAY(0x863ad6c)') called at blib/lib/Mj/Format.pm (autosplit into blib/lib/auto/Mj/Format/help.al) line 406
	Mj::Format::help('Majordomo=HASH(0x84a782c)', 'GLOB(0x80c88e4)', 'GLOB(0x80c88e4)', 'text', 'HASH(0x86293d4)', 'ARRAY(0x863ad6c)') called at /home/tibbs/mj/2.0-snap/bin/.mj_shell line 429
	main::parse_command('help', 'createlist', '', 'HASH(0x86132f4)') called at /home/tibbs/mj/2.0-snap/bin/.mj_shell line 237
	main::parse_interactive('ARRAY(0x8122ae4)', undef) called at /home/tibbs/mj/2.0-snap/bin/.mj_shell line 180


So IO::Handle::getline gets called with a defined value, but is still
complaining about an undefined value.  I'm leaning towards a Perl bug at
this point, but I'll poke at it further.

 - J<





Follow-Ups:
References:
Indexed By Date Previous: RTFM problem? Perl problem? Mj2 problem?
From: "Roger B.A. Klorese" <rogerk@QueerNet.ORG>
Next: Re: RTFM problem? Perl problem? Mj2 problem?
From: SRE <eckert@climber.org>
Indexed By Thread Previous: RTFM problem? Perl problem? Mj2 problem?
From: "Roger B.A. Klorese" <rogerk@QueerNet.ORG>
Next: Re: RTFM problem? Perl problem? Mj2 problem?
From: Jason L Tibbitts III <tibbs@math.uh.edu>

Google
 
Search Internet Search www.greatcircle.com