Answer the question
In order to leave comments, you need to log in
Curses in Perl throws errors
I'm trying to figure out an example
#!/usr/bin/perl -w
use Curses::UI;
my $cui = new Curses::UI;
my $win = $cui->add('window_id', 'Window');
my $listbox = $win->add(
'mylistbox', 'Listbox',
-values => [1, 2, 3],
-labels => { 1 => 'One',
2 => 'Two',
3 => 'Three' },
-radio => 1,
);
$listbox->focus();
my $selected = $listbox->get();
[[email protected] BRmysql]# perl Curses.pl
Can't locate Curses/UI.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at Curses.pl line 3.
BEGIN failed--compilation aborted at Curses.pl line 3.
Answer the question
In order to leave comments, you need to log in
UI.pm
in the indicated directories ( /usr/local/lib64/perl5
, /usr/local/share/perl5
, /usr/lib64/perl5/vendor_perl
, /usr/share/perl5/vendor_perl
, /usr/lib64/perl5
, /usr/share/perl5
). UI.pm
in the indicated directories ( /usr/local/lib64/perl5
, /usr/local/share/perl5
, /usr/lib64/perl5/vendor_perl
, /usr/share/perl5/vendor_perl
, /usr/lib64/perl5
, /usr/share/perl5
). UI.pm
in the indicated directories ( /usr/local/lib64/perl5
, /usr/local/share/perl5
, /usr/lib64/perl5/vendor_perl
, /usr/share/perl5/vendor_perl
, /usr/lib64/perl5
, /usr/share/perl5
). Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question