develooper Front page | perl.perl5.porters | Postings from November 2017

Antw: [perl #132459] Problem with DB::db_complete: Can't use string("::") as a HASH ref while "strict refs" in use

Thread Next
From:
Ulrich Windl
Date:
November 21, 2017 07:32
Subject:
Antw: [perl #132459] Problem with DB::db_complete: Can't use string("::") as a HASH ref while "strict refs" in use
Message ID:
5A13D4DF020000A100028F48@gwsmtp1.uni-regensburg.de
>>> "James E Keenan via RT" <perlbug-followup@perl.org> schrieb am 20.11.2017 um
15:47 in Nachricht <rt-4.0.24-6198-1511189264-704.132459-94-0@perl.org>:
> On Thu, 16 Nov 2017 22:05:38 GMT, Ulrich.Windl@rz.uni-regensburg.de wrote:

[..]
>> Finally, for the nerds, there is a compressed uuencoded typescript of a
>> sample session:
> 
> Would you be able to attach a short Perl program which a reader could step 
> through with the debugger and which would illustrate the problems you are 
> encountering?
> 
> No more than 10 lines should be necessary.

Being surprised that people are unable to uudecode, there is the plaintext (copy&paste) version of the uuencoded part of the original bug report:
----replay from here ;-) ---------
Skript gestartet auf Do 16 Nov 2017 22:38:26 CET
user@host:/tmp> perl -d -e 1 -w

Loading DB routines from perl5db.pl version 1.39_10
Editor support available.

Enter h or 'h h' for help, or 'man perldebug' for more help.

main::(-e:1):   1
  DB<1> use strict

  DB<2> @loop_indices

  DB<3> x @looCan't use string ("::") as a HASH ref while "strict refs" in use at /usr/lib/perl5/5.18.2/perl5db.pl line 9519.
 at /usr/lib/perl5/5.18.2/perl5db.pl line 9519.
        DB::db_complete('@loo', 'x @loo', 2) called at /usr/lib/perl5/vendor_perl/5.18.2/x86_64-linux-thread-multi/Term/ReadLine/Gnu/XS.pm line 574
        Term::ReadLine::Gnu::XS::_trp_completion_function('@loo', 0) called at /usr/lib/perl5/vendor_perl/5.18.2/x86_64-linux-thread-multi/Term/ReadLine/Gnu.pm line 719
        Term::ReadLine::Gnu::AU::__ANON__[/usr/lib/perl5/vendor_perl/5.18.2/x86_64-linux-thread-multi/Term/ReadLine/Gnu.pm:719]('Term::ReadLine=HASH(0x2273828)', '\x{1}\x{1b}[4m\x{2}  DB<3> \x{1}\x{1b}[24m\x{2}') called at /usr/lib/perl5/vendor_perl/5.18.2/x86_64-linux-thread-multi/Term/ReadLine/Gnu.pm line 331
        Term::ReadLine::Gnu::readline('Term::ReadLine=HASH(0x2273828)', '  DB<3> ') called at /usr/lib/perl5/5.18.2/perl5db.pl line 7287
        DB::readline('  DB<3> ') called at /usr/lib/perl5/5.18.2/perl5db.pl line 1832
        DB::_DB__read_next_cmd(undef) called at /usr/lib/perl5/5.18.2/perl5db.pl line 2747
        DB::DB called at -e line 1
Debugged program terminated.  Use q to quit or R to restart,
use o inhibit_exit to avoid stopping after program termination,
h q, h R or h o to get additional info.
  DB<3> x @looCan't use string ("::") as a HASH ref while "strict refs" in use at /usr/lib/perl5/5.18.2/perl5db.pl line 9519.
END failed--call queue aborted at -e line 4209.
 at -e line 4209.
user@host:/tmp> exit

Skript beendet: Do 16 Nov 2017 22:39:18 CET
----stop replaying------

Regards,
Ulrich

> 
> Thank you very much.
> 
> -- 
> James E Keenan (jkeenan@cpan.org)

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About