for (1..2) { if ('ab' =~ /a/g) { print("match\n"); } else { print("no match\n"); } }