Dist-Zilla-Plugin-Web
view release on metacpan or search on metacpan
lib/Dist/Zilla/App/Command/bundle.pm view on Meta::CPAN
open my $out_fh, '>', "$file_path" or die "couldn't open $file_path to write: $!";
# This is needed, or \n is translated to \r\n on win32.
# Maybe :raw:utf8 is needed, but not sure.
# -- Kentnl - 2010-06-10
binmode( $out_fh , ":raw" );
print { $out_fh } $file->content;
close $out_fh or die "error closing $file_path: $!";
chmod $file->mode, "$file_path" or die "couldn't chmod $file_path: $!";
}
}
1;
__END__
=pod
=encoding UTF-8
( run in 0.364 second using v1.01-cache-2.11-cpan-8d75d55dd25 )