# iterate over the split # placing each element in $_ along the way my @InfoArray; for (split(/&/, $post_info)) { chomp; # remove newline ($dummy, $temp) = split (/=/, $_); $temp =~ tr/+/ /; # ack, urldecoding in a regex ? $temp =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; push(@InfoArray,$temp); }