Help for this page

Select Code to Download


  1. or download this
         pos SCALAR
    
    ...
         modified to change that offset.  Such modification
         will also influence the C<\G> zero-width assertion in
         regular expressions.  See L<perlre> and L<perlop>.
    
  2. or download this
        pos() - length $&
    
  3. or download this
        my $R = "foo bar quux baz";
        while ($R =~ /ba.\b/g) {
            print pos($R) - length $&, "\n";
        }
    
  4. or download this
        4
        13