vikee has asked for the wisdom of the Perl Monks concerning the following question:

Hello,is there a possibility to force this command to 
select a directory and not a file? like Fileselect fileselect command. 

thanks

Replies are listed 'Best First'.
Re: Tk: getOpenFile
by eserte (Deacon) on Jun 25, 2004 at 08:25 UTC
    With Tk version 804, there is a chooseDirectory method which should work just like getOpenFile. Otherwise, you have to use one of the Tk::Dir* modules, or Win32::FileOp on Windows only. See this article for some examples.
Re: Tk: getOpenFile
by davidj (Priest) on Jun 25, 2004 at 08:17 UTC
    No there isn't. However, all is not lost. If you want a way to select a directory, check out Tk::DirSelect.

    davidj