Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Can't call method "get_screen" on an undefined value

by kennethk (Abbot)
on Mar 06, 2014 at 15:44 UTC ( [id://1077246]=note: print w/replies, xml ) Need Help??


in reply to Can't call method "get_screen" on an undefined value

First, I note that the phrase get_screen does not appear on line 21. This means that the error message you are reporting cannot come from your posted code. If you'd like help debugging, please post the code you are actually running when the error message is issued. Also please wrap error messages in <code> tags, just to make sure nothing gets mangled. Please see How do I post a question effectively?.

Errors of this type are issued when you invoke a method on a variable that is currently undefined. I'm guessing that since the phrase get_screen only appears on line 14 with $window, $window is undefined. This probably means your initialization call on line 11 failed. So I'd start there.


#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

Replies are listed 'Best First'.
Re^2: Can't call method "get_screen" on an undefined value
by hakim-djz (Novice) on Mar 13, 2014 at 10:46 UTC
    Thanks for the advice. I realised I had the wrong names set from Glade. So instead of 'window1' I had 'Retro-Fi'. So just changed them and it's all working fine. Thanks again

Log In?
Username:
Password:

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

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

    No recent polls found