in reply to Re^2: Working with Binary Numbers
in thread Working with Binary Numbers
This rule does not apply to {x,y,z} alternations in the glob pattern. The documentation I could find isn't great on this point, and its language is generally in terms of filenames. But I'm 99% sure it's not a bug. I've seen tons of uses of glob in this way on PM!
BTW, the same behavior should happen in your shell (though it may be a different glob under the hood).
First, glob expands {...} and then it checks the filesystem to expand * and ? and the resulting pattern(s).$ ls {x,y,z} ls: x: No such file or directory ls: y: No such file or directory ls: z: No such file or directory
$ ls *{p,q,r} ls: *p: No such file or directory ls: *q: No such file or directory ls: *r: No such file or directory
blokhead
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Working with Binary Numbers
by salva (Canon) on Sep 25, 2007 at 14:50 UTC | |
by tye (Sage) on Sep 25, 2007 at 15:18 UTC | |
by ikegami (Patriarch) on Sep 25, 2007 at 15:19 UTC | |
by salva (Canon) on Sep 25, 2007 at 15:36 UTC | |
by shoness (Friar) on Sep 25, 2007 at 17:52 UTC | |
by CountZero (Bishop) on Sep 25, 2007 at 20:48 UTC | |
|
In Section
Seekers of Perl Wisdom