« lib/Perlmazing/Perlmazing/Precompile/scalar_context.pm
↑ Summary
blib/lib/Perlmazing/Perlmazing/abs2rel.pm »
| 1 | 1 | ▶ | use Perlmazing qw(croak slurp); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 1 | ▶ | use Digest::MD5; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | 2 | ▶ | sub main { | ||||||||
|
Subroutine
main: called CC=3 SCAR=11.2
Pod
undocumented
| |||||||||||
| 5 | 2 | my $file = shift; | |||||||||
| 6 | 2 | ▶ | croak "This function requires a file name as argument." unless defined $file; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 7 | 2 | ▶ | croak "File '$file' is not a valid file or cannot be read." unless -f $file; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 8 | 2 | my $ctx = Digest::MD5->new; | |||||||||
| 9 | 2 | $ctx->add(slurp $file); | |||||||||
| 10 | 2 | $ctx->hexdigest; | |||||||||
| 11 | } | ||||||||||
| 12 | |||||||||||
| 13 | 1; | ||||||||||