Help for this page

Select Code to Download


  1. or download this
      What is "/o" really for?
    
    ...
            while (<>) {
                print if /$pat/o;
            }
    
  2. or download this
    #!/usr/bin/perl -w
    
    ...
                noPrecomp => \&noPrecomp
             }
         );
    
  3. or download this
    Working from pattern 'a|ab|abc|abcde|ef|gh|ghij|qrst|nqmz|stuv', qr='(
    +?-xism:a|ab|abc|abcde|ef|gh|ghij|qrst|nqmz|stuv)'
    preComp finds 6
    ...
    noPrecomp 33414/s        --       -5%       -6%
    preCompQR 35094/s        5%        --       -1%
    preComp   35360/s        6%        1%        --