use strict; use CGI; my $string = "name=alex&sex=m&age=20"; my $q=CGI->new($string); print Dumper scalar $q->Vars()"