note
strider corinth
The problem looks like it stems from the way Tk::FileSelect handles file masks, and its selection verifying feature. You aren't allowed (by default) to pick directories, just files. So when you select /usr/local/*, you're seeing odd results because you're not selecting the directory itself, but all of the files within it.<br>
<br>
If you add <code>$fs->configure( -verify => [ '-e' ] );</code> after you create your selection dialog, it will switch the verification flag from '!-d' (don't select directories) to '-e' (select anything that exists). My test program returns just the directory name when that line is inserted.<br>
<br>
For more info, check <a href = "http://search.cpan.org/author/NI-S/Tk-800.024/pod/FileSelect.pod">the CPAN docs for Tk::FileSelect</a>.
<br>
--<br>
<br>
Love justice; desire mercy.<br>
210477
210477