I tried this and it didnt work:$data =~ /(?:match|matching\.com|match\.company)/gi)
my $first = 'match'; my $second = 'matching\.com'; my $third = 'match\.company'; $data =~ /(?:$first|$second|$third)/gi)
In reply to Variable in pattern matching line by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |