Help for this page

Select Code to Download


  1. or download this
    pos SCALAR
    pos     Returns the offset of where the last "m//g" search
    ...
            will also influence the "\G" zero-width assertion
            in regular expressions.  See perlre and perlop.
    
  2. or download this
    my $var = 'the quick brown fox';
    
    ...
        print "Matched '$1' \@ pos:", pos($var), "\n";
    }