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

 

Reply via email to