On Oct 2, 2013, at 8:41 AM, Robert Klemme <shortcutter / googlemail.com> =
wrote:

> On Wed, Oct 2, 2013 at 2:59 PM, Tamara Temple =
<tamouse.lists / gmail.com> wrote:
>=20
>> Dir['**/'].each {|f| =85}
>>=20
>> which is the same as
>>=20
>> Dir.glob('**/') {|f| =85 }
>=20
> Not exactly: Dir.[] will always create an Array.  Dir.glob() will only
> create an Array if no block is given. If there is a block, it is
> invoked for each match.  That may actually make a difference.
>=20

That's basically what I said here:

>> Dir['**/'] is equivalent to Dir.glob('**/',0) (without the block, =
.glob() returns an array).



> Cheers
>=20
> robert
>=20
>=20
> --=20
> remember.guy do |as, often| as.you_can - without end
> http://blog.rubybestpractices.com/