in reply to Re: trouble with glob
in thread trouble with glob
But whenever I get my results returned by glob like this, they are broken up into different array elements by the spaces in the directories. So for instance:
Return@SEARCH_FOR_TIFS = glob("$FOLDERNAME*.tif"); print $SEARCH_FOR_TIFS[0];
Element 0: /local/Macintosh/COVERS Element 1: archive/A-E/Eye Element 2: of Element 3: Element 4:
And part of the data disappears (element 3 and 4 should not be empty if it was splitting on the white space).
What am I doing wrong here? I looked through File::Glob but don't see how to change globs behavior. I see the arguments to glob will be interpreted as different search queries if separated by white space but that is not applicable here. This wasn't a problem when I was store the glob results in scalar, but that obviously wasn't the right strategy either since I was only getting one of the results.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: trouble with glob
by Gulliver (Monk) on Dec 03, 2010 at 22:02 UTC | |
by Anonymous Monk on Dec 03, 2010 at 23:01 UTC | |
by kurt2439 (Sexton) on Dec 03, 2010 at 23:05 UTC |