Help for this page

Select Code to Download


  1. or download this
    X:\database> perl -le "@foo = `dir /b ABC*`; print scalar @foo"
    540
    
  2. or download this
    X:\database> perl -le "@foo = glob('ABC*'); print scalar @foo"
    540
    
  3. or download this
    
    use strict;
    ...
        $wild = qr{\A$wild\z};
        return $wild;
    }
    
  4. or download this
    Benchmark: timing 10 iterations of fdglob, plglob, qxglob, rdglob...
                  Rate qxglob fdglob rdglob plglob
    ...
    fdglob      3.44/s 26995%     --   -35%   -40%
    rdglob      5.33/s 41871%    55%     --    -7%
    plglob      5.71/s 44893%    66%     7%     --