How to open the folder selection dialog in Perl?
Depends on the GUI system used and, possibly, the platform. For example, on Windows and with, Win32::GUIyou can use GetOpenFileName:
Win32::GUI
GetOpenFileName
# $main is your main window... $my_file = $main->GetOpenFileName( -title => 'Select a file...', -file => 'default.file', );
Most portable (at least compared to ot he rs ):
use Tk; my $dir = Tk::MainWindow->new->chooseDirectory;
Of course, if you are actually using Tk in the rest of your program, you should call chooseDirectoryin the appropriate parent widgets instead of creating and destroying here.
chooseDirectory
GUI wxPerl.
Source: https://habr.com/ru/post/1725116/More articles:python regex on multiple lines - pythonGood practice for writing subqueries in MySQL? - sqlImplementing application expiration dates? - c ++Eclipse RCP: only one job starts at a time? - multithreadingAdding a section to the taskbar in Outlook 2007/2010? - c #C # Unicode (Japanese characters) - c #Are there machine (and human) readable specification languages ββfor collections of algorithms and meta libraries? - metaprogrammingHow to call a stored procedure from a Jasper report? - jasper-reportsBinding values ββdo not appear in ListBox (silverlight 3) - silverlightLevel design in pygame - pythonAll Articles