AnyEvent-DNS-EtcHosts

 view release on metacpan or  search on metacpan

xt/copyright.t  view on Meta::CPAN

            $
        >xms;
    ## use critic

    my $content = read_file($_);

    # Note: man pages will fail to match if the correct form of the
    # copyright symbol is used because the man page translators don't
    # handle UTF-8.
    #
    # For some reason, Vim writes a bad utf8 version of the copyright sign
    # if I attempt to modify the line.  So, disable the violation.  *sigh*
    ## no critic (ProhibitEscapedMetacharacters)
    my @copyright_years = $content =~ m<
                                       (?: copyright(?:\s\(c\))? | \(c\) )
                                       \s*
                                       (?: \d{4} \\? [-,]\s*)*
                                       (\d{4})
                                       >gixms;
    if (0 < grep { $_ eq $this_year } @copyright_years) {
        pass($_);



( run in 0.237 second using v1.01-cache-2.11-cpan-4d50c553e7e )