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.
In reply to Re^2: trouble with glob
by kurt2439
in thread trouble with glob
by kurt2439
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |