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

Why don't you use chooseDirectory()?

$path = $mw->chooseDirectory()
Cheers, CHristoph
  • 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
  • Select or 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:11 UTC
    ummm, I didn't know it existed? lol. i gave it a shot and it works on both linux and windows :) thanks for the idea