in reply to Tk::Error: Can't call method "selectionGet" on unblessed reference at C:/Perl64/ site/lib/Tk/DirSelect.pm line 53. using TK::DirSelect

it could just be the differences between windows and linux

Yes, it could - it could also be a difference between perl-5.10 and perl-5.12.
DirSelect.pm contains some Win32-specific code, so there has at least been some attempt to deal with something that's specific to windows.
I'd try inserting some print statements in DirSelect.pm in order to try and find out what's going on. For instance, if $w->{tree} is not a blessed reference, it would be a good idea to find out just what it is, and then trace it back to try and determine why it's not a blessed refence.

Tk::DirSelect is a pure perl module, so I'd be hopeful that the problem could be fixed by hacking DirSelect.pm appropriately.

Did Tk::DirSelect pass its test suite when you installed it ?

Cheers,
Rob
  • Comment on Re: Tk::Error: Can't call method "selectionGet" on unblessed reference at C:/Perl64/ site/lib/Tk/DirSelect.pm line 53. using TK::DirSelect
  • Download Code

Replies are listed 'Best First'.
Re^2: Tk::Error: Can't call method "selectionGet" on unblessed reference at C:/Perl64/ site/lib/Tk/DirSelect.pm line 53. using TK::DirSelect
by Stoney2005 (Acolyte) on May 25, 2011 at 17:10 UTC
    I've opted to go for lamprecht's idea that i wish i'd realized existed. But I will continue to work on this problem to get a solution back to the monks :)