App-Pods2Site
view release on metacpan or search on metacpan
author/patch-next-version.pl view on Meta::CPAN
unlink($msgfile2);
print "END\n";
sub readAll
{
my $fn = shift;
open(my $fh, '<', $fn) or die("Failed to open '$fn': $!\n");
binmode($fh);
local $\ = undef;
my @c = <$fh>;
close($fh);
chomp(@c);
return @c;
}
sub writeAll
{
my $fn = shift;
my @c = @_;
open(my $fh, '>', $fn) or die("Failed to open '$fn': $!\n");
binmode($fh);
print $fh "$_\n" foreach (@c);
close($fh);
}
( run in 0.274 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )