open my $fh, "<:raw:scalar", $record{'data'} or die "Couldn't open memory file: $!";