in reply to Re: how do I call this .pm from my script
in thread how do I call this .pm from my script

bobn - I can't find DirSelect.pm on CPAN - so where could we find it? And I tried the code above, although I have no clue whatsoever about Perl/Tk, and came to the conclusion that there are probably even some issues in the module itself.
The call to Win32API::File::GetVolumeInformation should probably be changed from
Win32API::File::GetVolumeInformation($d,$volumelabel,,,,,,);
to something like
my $dummy; Win32API::File::GetVolumeInformation($d, $volumelabel, [], [], $dummy, + [], $dummy, $dummy);
I still get an error about -directory => $d in sub _dirtree, though.
Maybe I am completely wrong, but that is what I thought of it after reading the docs and playing a bit with it.
Cheers, CombatSquirrel.

Update: Found it at Tk::DirSelect; the first one of the above issues is not present at the module's installation on my system (ver 1.03).

Replies are listed 'Best First'.
Re: Re: Re: how do I call this .pm from my script
by bobn (Chaplain) on Aug 24, 2003 at 00:07 UTC

    It's actually Tk::DirSelect and CPAN.pm found and installed it with no problems.

    I agree that there probablyly issues in the module - the example says use -w for width, but the Populate sub in the module refers to $args->{width}, I think. I deleted this thing from machine, (and I almost NEVER delete anything), so I no longer have it for reference and don't plan on using it for anything.

    POD is easy enough to use. So is #. If the author of the module couldn't use either of those, it's very disappointing.

    --Bob Niederman, http://bob-n.com

    All code given here is UNTESTED unless otherwise stated.