northwestdev has asked for the wisdom of the Perl Monks concerning the following question:
I'm expecting to see reissue instead of matchRating. What am I doing incorrectly?my $reissue="reissue"; my $yes="Y"; my $no="N"; my $phase =1; my $dateMatch=$no; my $NPpending="NPpending"; my $matchRating="matchRating"; my $HITstatus=$reissue; if (($dateMatch == $yes) && ($phase == 1)) { $HITstatus=$NPpending; } if ($dateMatch == $yes) { $HITstatus=$matchRating; } print $HITstatus."<br>\n"; print $dateMatch."<br>\n"; =============================== Here's the output: matchRating N
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unexpcted answer
by ikegami (Patriarch) on Jun 08, 2009 at 13:31 UTC | |
|
Re: Unexpcted answer
by Anonymous Monk on Jun 08, 2009 at 13:29 UTC |