$file_info_ref = $files{X}; push @$file_info_ref,'data5'; or push @{$files{X}}, 'data5'