in reply to Bowling Handicaps
You repeat "my" for the $hand1-4 variables when you assign to them, but in the separate scope of each if statement. Thus, when you do the addition to $teamhand, you get the original, uninitialized $hand1-4 variables.
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
|
|---|