Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: passing Curses object to subroutine

by emilford (Friar)
on Apr 14, 2004 at 01:35 UTC ( [id://344905]=note: print w/replies, xml ) Need Help??


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?

Replies are listed 'Best First'.
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://344905]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-26 08:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found