use CGI; my %data = CGI->new( $memory_data )->Vars();