throop has asked for the wisdom of the Perl Monks concerning the following question:
After studying blokhead's trick of using glob to expand wildcards (OK, I'm impressed.)
The example shows me I still don't have the hang of glob. The glob documentation says that the metacharacters behave as
So why does glob('foo{a,b}') expand into fooa, foob, but glob('foo[ab]') expand into nothing?\ Quote the next metacharacter [] Character class {} Multiple pattern * Match any string of characters ? Match any single character ~ User name home directory
throop
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How glob expands
by Fletch (Bishop) on Sep 29, 2007 at 00:01 UTC | |
by calin (Deacon) on Sep 29, 2007 at 18:43 UTC | |
|
Re: How glob expands
by Joost (Canon) on Sep 28, 2007 at 23:56 UTC |