Help for this page

Select Code to Download


  1. or download this
    use strict;
    use Benchmark;
    ...
        'lookahead' => sub { ($index) = $str =~ m/^(.+?)(?=\|)/ },
        'splitter'  => sub { ($index) = split /\|/, $str },
    });