Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use warnings;
    ...
            say 'No match';
        }
    }
    
  2. or download this
    /a(.)/
    $1: b
    ...
    $&: ad
    //
    No match
    
  3. 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.";
    }