| 1 | |||||||||||
| 2 | package MyConText::File; | ||||||||||
| 3 | 1 | ▶ | use MyConText::String; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 1 | ▶ | use vars qw! @ISA !; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 1 | @ISA = qw! MyConText::String !; | |||||||||
| 7 | |||||||||||
| 8 | 0 | ▶ | sub index_document { | ||||||||
|
Subroutine
index_document: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 9 | 0 | my ($self, $file) = @_; | |||||||||
| 10 | 0 | my $dbh = $self->{'dbh'}; | |||||||||
| 11 | |||||||||||
| 12 | 0 | ▶ | open FILE, $file or do { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 13 | 0 | $self->{'errstr'} = "Reading the file `$file' failed: $!"; | |||||||||
| 14 | 0 | return; | |||||||||
| 15 | }; | ||||||||||
| 16 | 0 | my $data; | |||||||||
| 17 | { | ||||||||||
| 18 | 0 | local $/ = undef; | |||||||||
| 19 | 0 | $data = <FILE>; | |||||||||
| 20 | } | ||||||||||
| 21 | 0 | close FILE; | |||||||||
| 22 | 0 | $self->SUPER::index_document($file, $data); | |||||||||
| 23 | } | ||||||||||
| 24 | |||||||||||
| 25 | 1 | 1; | |||||||||
| 26 | |||||||||||