in reply to multiple options for pattern match help

Hi,
what's wrong wioth your code? Works fine for me:
my $string = 'somechar acters'; if ($string =~ /(int)|(char)|(bool)|(long)/){ print "matches\n"; }
prints
matches

It can become quite confusing if you test for a lot of strings in one regex, then I'd go for a lookup array or even better a hash.
Regards,
svenXY