Are you looking for Devel :: Size
NAME
Devel :: Size - Perl extension for finding memory usage of Perl variables
SYNTAX
use Devel::Size qw(size total_size); my $size = size("A string"); my @foo = (1, 2, 3, 4, 5); my $other_size = size(\@foo); my $foo = {a => [1, 2, 3], b => {a => [1, 3, 4]} }; my $total_size = total_size($foo);
mbac32768 Sep 20 '08 at 0:32 2008-09-20 00:32
source share