Spencer_Lists wrote:

> Greetings ,
> 
> I am trying to create an array with all of the files in a folder so
> that I can do various things with them. I have no problem unless the
> path contains space characters such as "documents and settings" I have
> written TK applications that use dirtree and I can access paths with
> spaces as long as I wrap the path in quotes. This does not work with
> simple perl scripts, Any suggestions as to how to access the files in
> paths with spaces in the names?
> 
> @files = <$path/*>;

This works fine for me:

use strict;
use warnings;

my $path = "C:/Program Files";
my @files = <$path/*>;
print "'$_'\n" foreach @files;

__END__

What is your specific problem with it ?
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to