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

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

by kennethk (Abbot)
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
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?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2016-04-30 19:12 GMT
Find Nodes?
    Voting Booth?
    :nehw tseb si esrever ni gnitirW

    Results (441 votes). Check out past polls.