16 |
|
|
17 |
=head1 VERSION |
=head1 VERSION |
18 |
|
|
19 |
Version 0.12 |
Version 0.13 |
20 |
|
|
21 |
=cut |
=cut |
22 |
|
|
23 |
our $VERSION = '0.12'; |
our $VERSION = '0.13'; |
24 |
|
|
25 |
=head1 SYNOPSIS |
=head1 SYNOPSIS |
26 |
|
|
162 |
code_page => 'cp852', |
code_page => 'cp852', |
163 |
limit => 500, |
limit => 500, |
164 |
offset => 6000, |
offset => 6000, |
|
lookup => $lookup_obj, |
|
165 |
stats => 1, |
stats => 1, |
166 |
lookup_ref => sub { |
lookup_coderef => sub { |
167 |
my ($k,$v) = @_; |
my $rec = shift; |
168 |
# store lookup $k => $v |
# store lookups |
169 |
}, |
}, |
170 |
modify_records => { |
modify_records => { |
171 |
900 => { '^a' => { ' : ' => '^b' } }, |
900 => { '^a' => { ' : ' => '^b' } }, |
182 |
|
|
183 |
C<stats> create optional report about usage of fields and subfields |
C<stats> create optional report about usage of fields and subfields |
184 |
|
|
185 |
C<lookup_coderef> is closure to call when adding C<< key => 'value' >> combinations to |
C<lookup_coderef> is closure to called to save data into lookups |
|
lookup. |
|
186 |
|
|
187 |
C<modify_records> specify mapping from subfields to delimiters or from |
C<modify_records> specify mapping from subfields to delimiters or from |
188 |
delimiters to subfields, as well as oprations on fields (if subfield is |
delimiters to subfields, as well as oprations on fields (if subfield is |
207 |
$log->logconfess("lookup_coderef must be CODE, not ",ref($arg->{lookup_coderef})) |
$log->logconfess("lookup_coderef must be CODE, not ",ref($arg->{lookup_coderef})) |
208 |
if ($arg->{lookup_coderef} && ref($arg->{lookup_coderef}) ne 'CODE'); |
if ($arg->{lookup_coderef} && ref($arg->{lookup_coderef}) ne 'CODE'); |
209 |
|
|
210 |
|
$log->debug( $arg->{lookup_coderef} ? '' : 'not ', "using lookup_coderef"); |
211 |
|
|
212 |
$log->logcroak("need path") if (! $arg->{'path'}); |
$log->logcroak("need path") if (! $arg->{'path'}); |
213 |
my $code_page = $arg->{'code_page'} || 'cp852'; |
my $code_page = $arg->{'code_page'} || 'cp852'; |
214 |
|
|