App-Licensecheck
view release on metacpan or search on metacpan
lib/App/Licensecheck.pm view on Meta::CPAN
return $content
if defined($content);
if ( not defined($encoding) ) {
$log->debugf( 'reading whole file %s as raw bytes', $path );
$content = $path->slurp_raw;
}
else {
my $id = $encoding->name;
$log->debugf( 'decoding whole file %s as %s', $path, $id );
$content = $path->slurp( { binmode => ":encoding($id)" } );
}
$log->trace("----- content -----\n$content----- end content -----")
if $log->is_trace;
}
elsif ( not defined($license) or not defined($copyrights) ) {
# TODO: distinguish header from full content
return $content
if defined($content);
( run in 0.539 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )