Also, I don't understand the point of your loop:
Why aren't you just printing $result1?foreach $dice (@dicearray) { if ( $dice eq $result1) { print "$dice\n"; last; } }
In reply to Re: two dice question
by ysth
in thread two dice question
by convenientstore
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |