http://www.perlmonks.org?node_id=492971


in reply to Re^4: inside-out objects using arrays?
in thread inside-out objects using arrays?

Why not just convert @name to %name. You can keep using the numerical index. That changes the array into a sparse array. The time cost is quite minimal.