Regular expressions: Difference between revisions

m
Line 1,173:
If regular expression matches are being made against the topic variable, it is possible to omit the regular expression binding operators:
 
<lang perl>$_ = "I like banana milkshake.";
if (/banana/) { # The regular expression binding operator is omitted
print "Match found\n";
}</lang>
}
 
=={{header|Perl 6}}==