in reply to Re^2: Perl <dir_with_wildcards>
in thread Perl <dir_with_wildcards>
If non-empty braces are the only wildcard characters used in the glob, no filenames are matched, but potentially many strings are returned. For example, this produces nine strings, one for each pairing of fruits and colors:my @many = glob "{apple,tomato,cherry}={green,yellow,red}";
Reason is, Perl started as shell° scripting on steroids, it had to compete with similar glob mechanisms there.
(I'm using this feature often, but am still irritated)
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery
°) well <{ba,k,c,}sh> scripting if you want ;)
|
---|