Hi all......
I've found that the perl debugger 'v' command fails since I upgraded a
while ago.
It's OK on Mint 20.3 (perl 5.30) but broken on Mint 21 (perl 5.34).
I get this:
Enter h or 'h h' for help, or 'man perldebug' for more help.
main::(/tmp/t.pl:1): print "hello\n";
DB<1> v
Undefined subroutine &DB::cmd_l called at
Indeed, cmd_l is not defined in the current perl5db.pl script.
On 08/11/2023 21:04, Mike Scott wrote:
Hi all......
I've found that the perl debugger 'v' command fails since I upgraded
a while ago.
It's OK on Mint 20.3 (perl 5.30) but broken on Mint 21 (perl 5.34).
I get this:
Enter h or 'h h' for help, or 'man perldebug' for more help.
main::(/tmp/t.pl:1): print "hello\n";
DB<1> v
Undefined subroutine &DB::cmd_l called at
Indeed, cmd_l is not defined in the current perl5db.pl script.
I find this really weird; somehow someone's gratuitously removed a
complete 4-line subroutine and nobody noticed.
Anyway, I copied the relevant lines from an older version, and it
seems to work now.
In perl5db.pl, add
sub cmd_l {
my (undef, $line) = @_;
return _cmd_l_main($line);
}
after the (badly worded) comment
## end sub cmd_l
(X-posted to c.l.p.misc in case anyone there is interested.)
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 493 |
Nodes: | 16 (3 / 13) |
Uptime: | 16:04:30 |
Calls: | 9,713 |
Calls today: | 3 |
Files: | 13,740 |
Messages: | 6,181,791 |