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);
In reply to Re: Out of Memory with File::Glob
by pg
in thread Out of Memory with File::Glob
by dvergin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |