wmoran has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to use Tk::FileSelect and I'm having problems getting a directory from it.
This app is basically a front end to dump/tar/mkisofs+cdrecord so the user has to be able to select a directory or a file.
The problem is when I select a directory in the box (for example, "/usr/local/*") I get it back from the select box twice (i.e. "/usr/local//usr/local/*") This obviously isn't what I want.
Before I write some sort of sub to correct the double directory, I wanted to see if possibly there were some extra options I should pass to the FileSelect to correct this? I'm calling it minimally now, meaning:
$fs = $mw->FileSelect(-directory => "/"); $directory = $fs->Show();
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: using Tk::FileSelect
by strider corinth (Friar) on Nov 05, 2002 at 16:22 UTC | |
by wmoran (Initiate) on Nov 05, 2002 at 16:49 UTC |