in reply to Re: mp3 collection renamer
in thread mp3 collection renamer

Nice code review. Hopefully BUU will learn from it.

But a minor pedantic point:

If this isn't clear, any time an object uses a hash to store data, you can (usually, unless the module author was clever) access that hash by typecasting the instantiation of that object into a hash.

I'm guessing that the above was just poor choice of words but just in case a newbie reads it I wanted to clear up what appears to be a bit of confusion.

What you really mean is that any time an objects underlying data type is a hash then it can be manipulated just like a reference to a normal hash, ( there is no casting involved).  In fact due to the fact that object types in perl are orthogonal from the their data type (despite what ref() says) this statement can be generalized to say that an object reference can always be treated exactly the same as a reference to the underlying data type.  The clever bit only means that the author has used an underlying datatype (I'm guessing you meant CODE refs) that prevents introspection.

Anyway, as I said good review.

Yves / DeMerphq
---
Writing a good benchmark isnt as easy as it might look.