Using Simple Patterns
To match a pattern (regular expression) against the contents of $_
, simply put the pattern between a pair of forward slashes (/), like we do here:
$_ = "yabba dabba doo";
if (/abba/) {
print "It
… Read the rest To match a pattern (regular expression) against the contents of $_
, simply put the pattern between a pair of forward slashes (/), like we do here:
$_ = "yabba dabba doo";
if (/abba/) {
print "It
… Read the rest