Help for this page

Select Code to Download


  1. or download this
    ...
    our $VERSION = '2021.0814';
    ...
    ... $offs = () = /\PM/g;
    ...
    
  2. or download this
    ...
    our $VERSION = '2023.0511';
    ...
    ... $offs = /^\pM/ + ( () = /\PM/g );
    ...
    
  3. or download this
    $ uname -a
    CYGWIN_NT-10.0-19045 titan 3.4.7-1.x86_64 2023-06-16 14:04 UTC x86_64 
    +Cygwin
    
  4. or download this
    $ perl -v | head -2 | tail -1
    This is perl 5, version 30, subversion 0 (v5.30.0) built for cygwin-th
    +read-multi
    ...
    $ perl -MO=Deparse -e '$offs = /^\pM/ + ( () = /\PM/g );'
    $offs = /^\pM/ + (() = /\PM/g);
    -e syntax OK
    
  5. or download this
    #!/usr/bin/env perl
    
    ...
    while ($x =~ /\PM/g) {
        print "Char at position @{[pos($x)-1]} NOT Mark property.\n";
    }
    
  6. or download this
    Perl version: v5.30.0
    Example chars with Mark property:
    ...
    Char at position 0 NOT Mark property.
    Char at position 2 NOT Mark property.
    Char at position 4 NOT Mark property.
    
  7. or download this
    Perl version: v5.38.0
    Example chars with Mark property:
    ...
    Char at position 0 NOT Mark property.
    Char at position 2 NOT Mark property.
    Char at position 4 NOT Mark property.