in reply to win32-FileOp module for strawberry
G'day srikrishnan,
Win32::FileOp was last updated about a decade ago. I suspect it is abandonware.
See "Bug #120791 for Win32-FileOp: Crash in BrowseForFolder()". This was raised six years ago; its Status is still "new".
Here's the guts of what I think you want:
#!/usr/bin/env perl use strict; use warnings; use Tk; my $mw = MainWindow::->new(); $mw->Button( -text => 'Select directory', -command => sub { my $dir = $mw->chooseDirectory(); # Do something with $dir # You probably want more than this demo test: if (defined $dir) { warn "Directory selected: '$dir'\n"; } else { warn "No directory selected.\n"; } }, )->pack(); MainLoop;
I strongly advise that you
— Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: win32-FileOp module for strawberry
by Anonymous Monk on Nov 05, 2022 at 04:08 UTC | |
by kcott (Archbishop) on Nov 05, 2022 at 08:25 UTC |