You can measure the size of a given data structure using Devel::Size.
In reply to Re: perl function complexity by kyle in thread perl function complexity by Anonymous Monk