in reply to Out of Memory with File::Glob
This is a known bug, not just redhat, I tried on windows, exactly the same problem.
To handle spaces, just use bsd_glob. For example:
use File::Glob ':glob'; use Data::Dumper; my $pattern = "C:/Program Files/*"; my @ary1 = bsd_glob("$pattern"); my @ary2 = bsd_glob("$pattern"); my @ary3 = bsd_glob("$pattern"); print Dumper(\@ary1);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Out of Memory with File::Glob
by dvergin (Monsignor) on Oct 28, 2003 at 06:14 UTC |