in reply to Re: Multiplexing array of arrays?
in thread Multiplexing array of arrays?

Hey, this is really interesting would you please shed more light on how glob is used this way??

From what I make, it looks like you are matching but what tricks me is the {} so I can be wrong...


Excellence is an Endeavor of Persistence. Chance Favors a Prepared Mind.

Replies are listed 'Best First'.
Re^3: Multiplexing array of arrays?
by ikegami (Patriarch) on Feb 02, 2010 at 19:36 UTC
    glob is a list generator. An entry will be generated for each value of a list in curlies
    $ perl -le'print for glob "{a,b,c}{d,e,f}"' ad ae af bd be bf cd ce cf

    A shell example:

    cp file{,.bk}
    is the same as
    cp file file.bk