kereekerra has asked for the wisdom of the Perl Monks concerning the following question:
I'm working on a dbi script involving starcraft II data. I want the loop that follows to execute if one player is zerg and the other player is terran. The error I'm working with is that I have a player_one_race=terran and player_two_race=protoss that is causing this loop to execute. Here is the if statement I am trying to use.
update: will use eq in the future.if(($player_one_race=~m/terran/ && $player_two_race=~/zerg/) || ($play +er_one_race=m/zerg/&&$player_two_race=\ ~m/terran/))
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help with a logical structure for an if statement
by brx (Pilgrim) on Apr 29, 2012 at 19:07 UTC | |
by JavaFan (Canon) on Apr 29, 2012 at 19:32 UTC | |
by tobyink (Canon) on Apr 30, 2012 at 07:43 UTC | |
by brx (Pilgrim) on Apr 30, 2012 at 09:12 UTC | |
|
Re: Help with a logical structure for an if statement
by toolic (Bishop) on Apr 29, 2012 at 19:10 UTC | |
|
Re: Help with a logical structure for an if statement
by Kenosis (Priest) on Apr 29, 2012 at 20:22 UTC | |
by choroba (Cardinal) on May 02, 2012 at 09:01 UTC |