How would I pass a Curses::UI object to a subroutine to be updated? I've tried several methods, each failed giving me an undefined. Suppose I have the following simplified code:
my $cui = Curses::UI;
my $window = $cui->add('blahblahblah', 'Window');
# add the progressbars
$window->add('p1', 'Progressbar');
$window->add('p2', 'Progressbar');
$window->add('p3', 'Progressbar');
How would I pass
$window to a subroutine and then use that passed value as
$window->getobj('p3')->{-text}="BlahBlahBlah" to update p3's text? I've tried passing it as a scalar and as a reference. Am I missing something?