- or download this
#!/usr/bin/perl
use warnings;
...
say 'No match';
}
}
- or download this
/a(.)/
$1: b
...
$&: ad
//
No match
- or download this
#!/usr/bin/perl
use warnings;
...
if ($x =~ /found (\d+)/ && $y =~ //) { # No need to repeat the long r
+egex! Yay!
say "Found $1.";
}