in reply to
Re: globing files with spaces problem.
in thread
globing files with spaces problem.
Hi folks! I tried with inserting '\' before every space, and it worked!
foreach my $dir (glob("*")) {
$dir =~ s/ /\\ /g;
foreach my $file (glob("$dir/*")) {
print "
$file
\n";
}
}
Comment on
Re^2: globing files with spaces problem.
In Section
Seekers of Perl Wisdom