Help for this page

Select Code to Download


  1. or download this
    c:\@Work\Perl\monks>perl -wMstrict -le
    "my $s = 'foobar';
    ...
    "
    positive look-behind capture: 'foo'
    positive look-ahead capture:  'bar'
    
  2. or download this
    c:\@Work\Perl\monks>perl -wMstrict -MData::Dump -le
    "my $s = 'abcd efgh';
    ...
      "overlapping captures: ",
      ["abcd", "bcd", "cd", "d", "efgh", "fgh", "gh", "h"],
    )