Skip Menu |

This queue is for tickets about the Term-Menu-Hierarchical CPAN distribution.

Report information
The Basics
Id: 125290
Status: resolved
Worked: 1 hour (60 min)
Priority: 0/
Queue: Term-Menu-Hierarchical

People
Owner: OKOPNIK [...] cpan.org
Requestors: PRIVI [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.95
Fixed in: (no value)



Subject: STDOUT must be passed as GLOBREF and not String-Scalar
Term::Menu::Hierarchical does not work with latest perl and latest Term::Readkey, cause STDOUT must now be passed as GLOBREF and cannot be passed as String-SCALAR Working patch: --- /usr/local/share/perl/5.24.1/Term/Menu/Hierarchical.pm.new 2018-05-08 15:21:54.262679128 +0200 +++ /usr/local/share/perl/5.24.1/Term/Menu/Hierarchical.pm 2018-05-08 15:22:52.067640801 +0200 @@ -29,11 +29,11 @@ die "The argument must be a hashref (arbitrary depth); exiting.\n" unless ref($all) eq 'HASH'; { # Refresh size info to catch term resize events - ($max_width, $max_height) = GetTerminalSize "STDOUT"; + ($max_width, $max_height) = GetTerminalSize \*STDOUT; $t->Tputs("cl", 1, *STDOUT); if (ref($data->{content}) eq 'HASH'){ $data = _display($data); } else {
RT-Send-CC: OKOPNIK [...] cpan.org
Thanks for the report and the patch; I've updated it and made a few other changes related to new Term::Cap handling, and the current version (0.99) now passes at least as many CPAN tests as it did before. Regards, Ben Okopnik