$VAR1 = { 'hosts' => { '127.0.0.1:11211' => { 'misc' => { 'bytes' => '132677792', 'curr_connections' => '1', 'connection_structures' => '3', 'pointer_size' => '64', 'time' => '1196796974', 'total_items' => '1900000', 'cmd_set' => '1900000', 'bytes_written' => '66197744', 'evictions' => '0', 'curr_items' => '1900000', 'pid' => '18968', 'limit_maxbytes' => '318767104', 'uptime' => '1625', 'rusage_user' => '13.501947', 'cmd_get' => '1900000', 'rusage_system' => '20.188930', 'version' => '1.2.2', 'get_hits' => '1900000', 'bytes_read' => '65067000', 'threads' => '1', 'total_connections' => '41', 'get_misses' => '0' }, 'sizes' => { '64' => '999', '96' => '1899001' }, 'malloc' => { 'total_free' => '6438240', 'releasable_space' => '6425520', 'free_chunks' => '7', 'fastbin_blocks' => '0', 'arena_size' => '156471296', 'total_alloc' => '150033056', 'max_total_alloc' => '0', 'mmapped_regions' => '36', 'mmapped_space' => '57696256', 'fastbin_space' => '0' } } }, 'self' => {}, 'total' => { 'malloc_releasable_space' => 6425520, 'bytes' => 132677792, 'connection_structures' => 3, 'total_items' => 1900000, 'malloc_mmapped_regions' => 36, 'malloc_free_chunks' => 7, 'malloc_total_alloc' => 150033056, 'cmd_set' => 1900000, 'bytes_written' => 66197744, 'malloc_fastbin_blocks' => 0, 'curr_items' => 1900000, 'malloc_max_total_alloc' => 0, 'malloc_arena_size' => 156471296, 'malloc_mmapped_space' => 57696256, 'cmd_get' => 1900000, 'malloc_fastbin_space' => 0, 'get_hits' => 1900000, 'bytes_read' => 65067000, 'total_connections' => 41, 'malloc_total_free' => 6438240, 'get_misses' => 0 } }; #### my $hashref1 = $memd->stats(); while ( my ($k,$v) = each %$hashref1 ) { print $k . ' --> ' . $v . $/; while ( my ($KK,$VV) = each %$v ) { print $KK . ' --> ' . $VV . $/; } } #### hosts -> HASH(0x30129a0) 127.0.0.1:11211 --> HASH(0x1b71da50) malloc_releasable_space --> 6425520 bytes --> 132677792 connection_structures --> 3 total_items --> 1900000 malloc_mmapped_regions --> 36 malloc_free_chunks --> 7 malloc_total_alloc --> 150033056 cmd_set --> 1900000 bytes_written --> 66210882 malloc_fastbin_blocks --> 0 curr_items --> 1900000 malloc_max_total_alloc --> 0 malloc_arena_size --> 156471296 malloc_mmapped_space --> 57696256 cmd_get --> 1900000 malloc_fastbin_space --> 0 get_hits --> 1900000 bytes_read --> 65067290 total_connections --> 66 malloc_total_free --> 6438240 get_misses --> 0