http://www.perlmonks.org?node_id=189839


in reply to Perl Tk & passing directories

Maybe something like this will point you in the right direction?
#!/usr/bin/perl -w use strict; use Tk; use Tk::FileSelect; my $top = new MainWindow; my $entry = $top->Entry()->pack(-side => 'left'); my $fs = $top->FileSelect(-verify => [qw/-d/]); my $dir = $fs->Show(); $entry->insert('end',$dir); MainLoop();

Cheers,
Shendal