in reply to Re: glob: where are the full paths?
in thread glob: where are the full paths?
For example, glob '{a,b}{c,d}' doesn't returns paths at all.
use strict; use warnings; use 5.010; say glob '{a,b}{c,d}'; --output:-- acadbcbd
Uhm, where's the documentation for that?
Ok, here's part of it:
In list context, returns a (possibly empty) list of filename expansions on the value of EXPR such as the standard Unix shell /bin/csh would do. In scalar context, glob iterates through such filename expansions, returning undef when the list is exhausted.What do the curly braces do?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: glob: where are the full paths?
by Anonymous Monk on Nov 14, 2009 at 10:14 UTC |