I have below my code that has the array and I want to be able to maka a variable to combine all string below.
STRING
&AgencyID=101000057&AgencyName=Test%20Ccra&AgentID=10014&AgentName=jeff%20kirk&AgentEmail=jkirk@me.com
CODE
#print "\n";
#print "<hr>\n";
foreach $namevalue (@namevaluepairs) {
( $name, $value ) = split ( /=/, $namevalue );
$value =~ tr/+/ /;
$value =~ s/%([\dA-Fa-f][\\dA-Fa-f])/ pack ("C",hex ($1))/eg;
$a = $a + 1;
$name{$a} = $name;
$responce{$a} = $value;
$Sam{$a}=$value;
$value{$a} = $value;
#print $a;print" = ";print $name; print " = ";
#print $responce{$a};print;
}
print '&AgencyID=',$responce{2};
print '&AgencyName=',$responce{3};
print '&AgentID=',$responce{5};
print '&AgentName=',$responce{4};
print '&AgentEmail=',$responce{6};
THANKS,
SAM
STRING
&AgencyID=101000057&AgencyName=Test%20Ccra&AgentID=10014&AgentName=jeff%20kirk&AgentEmail=jkirk@me.com
CODE
#print "\n";
#print "<hr>\n";
foreach $namevalue (@namevaluepairs) {
( $name, $value ) = split ( /=/, $namevalue );
$value =~ tr/+/ /;
$value =~ s/%([\dA-Fa-f][\\dA-Fa-f])/ pack ("C",hex ($1))/eg;
$a = $a + 1;
$name{$a} = $name;
$responce{$a} = $value;
$Sam{$a}=$value;
$value{$a} = $value;
#print $a;print" = ";print $name; print " = ";
#print $responce{$a};print;
}
print '&AgencyID=',$responce{2};
print '&AgencyName=',$responce{3};
print '&AgentID=',$responce{5};
print '&AgentName=',$responce{4};
print '&AgentEmail=',$responce{6};
THANKS,
SAM