I have a hash of array like this:
%work_sbu =(
"HR" => ["HR (John Mack)", "[EMAIL PROTECTED]"],
"Health Systems" => ["Health Systems (Bill Good)","[EMAIL PROTECTED]"],
"OPS" => ["OPS (Anne Lin)", "[EMAIL PROTECTED]"]);
The html form has drop down list of field call "work_sbu"
the value are "HR (John Mack)","Health Systems (Bill Good)","OPS (Anne Lin)".
depends on user's selection, I will get different email address.
If the user select the "OPS (Anne Lin)", I would like to get the email address, "[EMAIL PROTECTED]"
$pst = $rqpairs{work_sbu};
if (exists $work_sbu{$pst}){
$pstmail = $work_sbu{$pst}[1];
}For example $pst ="OPS (Anne Lin)", if user select this one, I would like to convert to $pst ="OPS", so I can use exsts to get the email address.
Could I do that? how? Thanks! Sue
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus
_______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
