| 1 | package File::Find::Rule::Dicom; | ||
| 2 | |||
| 3 | 3 | ▶ | use base qw(File::Find::Rule); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 3 | ▶ | use Dicom::File::Detect qw(dicom_detect_file); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 3 | our $VERSION = 0.05; | |
| 10 | |||
| 11 | # Detect DICOM file. | ||
| 12 | 1 | ▶ | sub File::Find::Rule::dicom_file { |
|
Subroutine
dicom_file: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 13 | 1 | my $file_find_rule = shift; | |
| 14 | 1 | my $self = $file_find_rule->_force_object; | |
| 15 | 2 | ▶ | return $self->file->exec(sub{ |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 16 | 2 | my $file = shift; | |
| 17 | 2 | return dicom_detect_file($file); | |
| 18 | 1 | }); | |
| 19 | } | ||
| 20 | |||
| 21 | 3 | 1; | |
| 22 | |||
| 23 | __END__ | ||