Re: Getting directory name from a FileSelection widget?



Jason Bodnar wrote:

How do you get the directory name from a FileSelection widget? Is there
something like get_filename but get_directory?
Hi,

  use File::Basename qw( dirname );
  my $dir = dirname($fileselection->get_filename);

regards, Dermot




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]