Image-CCV

 view release on metacpan or  search on metacpan

Makefile.PL  view on Meta::CPAN

    if ($perl =~/\s/) {
        $perl = qq{"$perl"};
    };
    my $examples = `$perl -w examples/gen_examples_pod.pl $module`;
    if ($examples) {
        $examples =~ s/\r\n/\n/g;
        update_file( 'lib/Image/CCV/Examples.pm', $examples );
    };
};

sub update_file {
    my( $filename, $new_content ) = @_;
    my $content;
    if( -f $filename ) {
        open my $fh, '<', $filename
            or die "Couldn't read '$filename': $!";
        binmode $fh;
        local $/;
        $content = <$fh>;
    };



( run in 0.762 second using v1.01-cache-2.11-cpan-4d4bc49f3ae )