Perlguy128
Programmer
I'm making a program that has a number random out of 64, and when it lands on that number, a variable is set to that number. Then it does random again and before doing anything else it checks to see that the number isn't equal to one of the 64 variables.
But I need help with something else.
if($var eq $a || $var eq $b || $var eq $c)
I need it to check like this every variable at once so if it's equal to all of them it goes to another part of the program. The problem is I have so many variables, they won't fit on one line, so is it possible to put the if on two lines or perhaps shorten it?
But I need help with something else.
if($var eq $a || $var eq $b || $var eq $c)
I need it to check like this every variable at once so if it's equal to all of them it goes to another part of the program. The problem is I have so many variables, they won't fit on one line, so is it possible to put the if on two lines or perhaps shorten it?