in reply to Re: passing Curses object to subroutine in thread passing Curses object to subroutine
In my actual code, I do use the new construct. My mistake.
My code works fine until I attempt $window->getobj('p3')->{-text} = "Something"; on a variable passed to a subroutine as &UpdateP3($window). I get an error stating 'getobj' can't be used/called on an undefined variable.
If all objects are references, I should be able to pass it to a subroutine and invoke the getobj method, right?
Re: Re: Re: passing Curses object to subroutine
by BUU (Prior) on Apr 14, 2004 at 02:31 UTC
|
The syntax you describe sounds valid (drop the & though, it does funky stuff), so you've probably screwed up actually doing it. I can't guess where or how though without seeing a small sample case that demonstrates the problem. | [reply] |
|