List Info

Thread: Re: 30396 breaks readline.pm




Re: 30396 breaks readline.pm
user name
2007-02-26 05:36:04
On 26/02/07, Andreas J. Koenig
<andreas.koenig.7os6VVqRfranz.ak.mind.de>
wrote:
> The following happens since 30396 when I only hit the
UP arrow key.
> I've just tried with 30405 and it behaves likewise.

Which ReadLine library do you use ? the core one doesn't use
SelfLoader.

Re: 30396 breaks readline.pm
user name
2007-02-26 14:05:28
>>>>> On Mon, 26 Feb 2007 12:36:04 +0100,
"Rafael Garcia-Suarez" <rgarciasuarezgmail.com> said:

  > On 26/02/07, Andreas J. Koenig
<andreas.koenig.7os6VVqRfranz.ak.mind.de>
wrote:
 >> The following happens since 30396 when I only hit
the UP arrow key.
 >> I've just tried with 30405 and it behaves
likewise.

  > Which ReadLine library do you use ? the core one
doesn't use SelfLoader.

Oh sorry, it was in the subject line but the connection
between
readline.pm and Term-ReadLine-Perl is not obvious.

-- 
andreas

Re: 30396 breaks readline.pm
user name
2007-02-26 22:47:29
>>>>> On Mon, 26 Feb 2007 21:05:28 +0100,
andreas.koenig.7os6VVqRfranz.ak.mind.de (Andreas J. Koenig)
said:

>>>>> On Mon, 26 Feb 2007 12:36:04 +0100,
"Rafael Garcia-Suarez" <rgarciasuarezgmail.com> said:
 >> On 26/02/07, Andreas J. Koenig
<andreas.koenig.7os6VVqRfranz.ak.mind.de>
wrote:
 >>> The following happens since 30396 when I only
hit the UP arrow key.
 >>> I've just tried with 30405 and it behaves
likewise.

 >> Which ReadLine library do you use ? the core one
doesn't use SelfLoader.

  > Oh sorry, it was in the subject line but the
connection between
  > readline.pm and Term-ReadLine-Perl is not obvious.

The problem is that the new SelfLoader imposes strictness on
the
autoloaded code and readline.pm is not written with use
strict in mind.

I just tried commenting 'use strict' out and it worked
again.

Alternatively I wrapped the eval in AUTOLOAD in a block:

    {
      no strict;
      eval $SL_code;
    }

and this works too.

-- 
andreas

Re: 30396 breaks readline.pm
user name
2007-02-27 08:08:36
On 27/02/07, Andreas J. Koenig
<andreas.koenig.7os6VVqRfranz.ak.mind.de>
wrote:
> I just tried commenting 'use strict' out and it worked
again.
>
> Alternatively I wrapped the eval in AUTOLOAD in a
block:
>
>     {
>       no strict;
>       eval $SL_code;
>     }
>
> and this works too.

OK. I wrapped the two evals in SelfLoader in no strict
blocks. (change
#30418) thanks!

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )