Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release > by-pkgid > cf5c571b10ac6ab925c7aedba3c26565 > files > 50

perl-Gtk2-1.249.500-2.mga5.x86_64.rpm

#!/usr/bin/perl -w

# using a Gtk2::FileSelection to get multiple files is really easy.

use Data::Dumper;
use Gtk2 -init;

my $fs = Gtk2::FileSelection->new ('pick something');
# tell it to allow multiple selections...
$fs->set_select_multiple (TRUE);
if ('ok' eq $fs->run) {
	# and then fetch the selections as a list.
	print Dumper($fs->get_selections);
}