[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

perl-perlmenu broken



The perl-perlmenu package as shipped does not work with perl5.  The original docs
suggest the following change to /usr/lib/perl5/vendor_perl/5.8.8/perlmenu.pm:

108,113c108,113
< #if ($] >= 5.001) {                   # Perl5 ONLY!
< #package Perl5::Menu_PL::Compat;      # Don't pollute perlmenu.pm namespace
< #require Term::Cap;                   # Get Tgetent package
< #$term = Tgetent Term::Cap { OSPEED => 9600 };           # Define entry
< #sub perlmenu::getcap { $term->{"_" . shift()} };  # Define local subroutine
< #}
---
> if ($] >= 5.001) {                    # Perl5 ONLY!
> package Perl5::Menu_PL::Compat;       # Don't pollute perlmenu.pm namespace
> require Term::Cap;                    # Get Tgetent package
> $term = Tgetent Term::Cap { OSPEED => 9600 };    # Define entry
> sub perlmenu::getcap { $term->{"_" . shift()} };  # Define local subroutine
> }

-- 
* The Digital Hermit   http://www.digitalhermit.com
* Unix and Linux Solutions   kwan digitalhermit com


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]