Is there a better way to write:
my $x = "return";
if (($x = "a") || ($x = "test" ) || ($x = "return" ) || ($x = "x-retun"))
{
print("bunch of foo....);
}
Could my if comparison be made smaller? I would like to compare 1 value to
a list without multiple "x =".
Best Regards,
Doug
- Re: Compare statement. Doug Johnson
- Re: Compare statement. Jeff Pinyan
- Re: Compare statement. Jos Boumans
- Re: Compare statement. Paul
- RE: Compare statement. Doug Johnson
