$foo = "3"; $bar = 4 + $foo; #### my $pattern = "foo|bar"; say "Match" if $str =~ $pattern;