lapsan has asked for the wisdom of the Perl Monks concerning the following question:
I have the following:
@duplicate = glob "files/$department/*.txt"; foreach $item (@duplicate) { if ($item eq "files/$department/$number.txt") { $go_sub = 'yes'; } }
I have some directories that contain spaces and when a directory that does contain spaces the array doesn't match $item properly.
I think I've tried most if not all of the combinations of single/double quotes that makes sense to me....
Ideas, suggestions?
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File::DosGlob
by clemburg (Curate) on Jan 05, 2001 at 14:29 UTC | |
|
Re: File::DosGlob
by eg (Friar) on Jan 04, 2001 at 22:46 UTC | |
by myocom (Deacon) on Jan 04, 2001 at 23:37 UTC | |
by tye (Sage) on Jan 05, 2001 at 01:37 UTC | |
by myocom (Deacon) on Jan 05, 2001 at 01:50 UTC | |
|
Re: File::DosGlob
by Hot Pastrami (Monk) on Jan 04, 2001 at 22:41 UTC | |
|
(tye) Spaces in wildcards (Re: File::DosGlob)
by tye (Sage) on Jan 05, 2001 at 01:16 UTC | |
|
Re: File::DosGlob
by Albannach (Monsignor) on Jan 04, 2001 at 22:30 UTC |