emilford has asked for the wisdom of the Perl Monks concerning the following question:
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?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');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: passing Curses object to subroutine
by kvale (Monsignor) on Apr 13, 2004 at 22:48 UTC | |
by emilford (Friar) on Apr 14, 2004 at 01:35 UTC | |
by BUU (Prior) on Apr 14, 2004 at 02:31 UTC | |
|
Re: passing Curses object to subroutine
by gmpassos (Priest) on Apr 14, 2004 at 05:56 UTC |