Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by kennethk (Monsignor)
on Mar 06, 2014 at 15:44 UTC ( #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.


Comment on Re: Can't call method "get_screen" on an undefined value
Select or Download Code
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
Node Status?
node history
Node Type: note [id://1077246]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (14)
As of 2014-10-23 18:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (128 votes), past polls