Config-General-Match

 view release on metacpan or  search on metacpan

lib/Config/General/Match.pm  view on Meta::CPAN

                    # matching section

                    push @matches, [
                        $section_priority,
                        length($section_string),
                        $section_hash,
                    ];
                }
            }
            elsif ($match_type =~ /^substring$/i) {
                if ((index $target_string, $section_string) != ($[ - 1)) {
                    # store matches as array ref where first element is
                    # the section's MergePriority, the second element is
                    # the length and the third is the config hash of
                    # matching section

                    push @matches, [
                        $section_priority,
                        length($section_string),
                        $section_hash,
                    ];



( run in 0.288 second using v1.01-cache-2.11-cpan-cc502c75498 )