How do I open folder selection dialog in Perl?
相关问题
- $ENV{$variable} in perl
- Is it possible to pass command-line arguments to @
- Redirecting STDOUT and STDERR to a file, except fo
- Change first key of multi-dimensional Hash in perl
- How do I get a filehandle from the command line?
相关文章
- Running a perl script on windows without extension
- Comparing speed of non-matching regexp
- Can NOT List directory including space using Perl
- Extracting columns from text file using Perl one-l
- Lazy (ungreedy) matching multiple groups using reg
- How do I tell DBD::mysql where mysql.sock is?
- What is a good way to deploy a Perl application?
- Speeding up Selenium Webdriver
Depends on the GUI system you're using, and perhaps the platform. For example, on Windows and using
Win32::GUI
, you can useGetOpenFileName
:You may want to check out the GUI bindings in wxPerl.
Most portable (at least compared to others):
Of course, if you're actually using Tk in the rest of your program, you should call
chooseDirectory
on a proper parent widget instead of the one constructed and destructed here.