Hi, I have a subroutine that grabs a parameter (city) from the url for use in the script (which produces a report with the value of that parameter). I now want to grab another parameter (state) and append it to the previous and have it also appear in the report. Preferably it would look like this: "Boston, MA" (without the quotes). Here's the code:
sub parseUrl { $nPara = $tPara = ""; ($nPara) = ( $line =~ /[\?&]N=([^&\s]+)/i ); if ($nPara ne "") { $nPara = unpack_clean($nPara); } ($tPara) = ( $line =~ /[\?&]T=([^&\s]+)/i ); #gets city parameter (T=) if ($tPara ne "") { $tPara = unpack_clean($tPara); } if ($tPara ne "" && $err eq "cit") { # print "$tPara\n"; if (exists $userCit{$tPara}) { $userCit{$tPara}++; } else { $userCit{$tPara}=1; $countCit++;} } How do I add the state parameter (S=)? Thanks! -Larry -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]