App-TestOnTap
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);
}
lib/App/TestOnTap/PackInfo.pm view on Meta::CPAN
'-a', "\$envFile;TESTONTAP_ENV_FILE",
'-M', 'Encode::*',
'-o', \$outfile,
slashify(File::Spec->rel2abs('$x_input'))
);
my \@cmdCopy = \@cmd;
\$_ .= "\\n" foreach (\@cmdCopy);
if (\$info)
{
write_file(\$cmdFile, { binmode => ':raw' }, \@cmdCopy) || die("Failed to write '\$cmdFile': \$!\\n");
}
if (\$verbose)
{
print "Packing to '\$outfile' using:\\n";
print " \$_\\n" foreach (\@cmd);
}
else
{
print "Packing to '\$outfile'...";
( run in 0.440 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )