in reply to Re: best structure for classes?
in thread best structure for classes?

A better approach is to use the constant pragma

Try using Benchmark on an array using constant to access the indexes. From what I've seen it lowers to to the performance of a hash (unless we're talking 10000 keys).
I would stay with hashes as you get all of the other benefits.