RE: MARC::Batch question

2011-10-14 Thread Zhang, Bin
in Cc: perl4lib@perl.org Subject: Re: MARC::Batch question As I deal with this all the time I've started including code to spit out these records into their own file. That has been very useful: my $batch = MARC::Batch->new('USMARC', '../full_export.out'); $batch-&g

Re: MARC::Batch question

2011-10-14 Thread arvinport...@lycos.com
As I deal with this all the time I've started including code to spit out these records into their own file. That has been very useful: my $batch = MARC::Batch->new('USMARC', '../full_export.out'); $batch->strict_off(); $batch->warnings_off(); my ($record, $counter, @rejected_record_counter); eva

Re: MARC::Batch question

2011-10-14 Thread Jonathan Druart
Hi, In Perl, to catch errors, you can use eval. Ex. eval { die "my error" }; warn "an error was occured : $@" if $@; ( http://perldoc.perl.org/functions/eval.html ) Others modules exist like Try::Tiny ( http://search.cpan.org/~doy/Try-Tiny-0.11/lib/Try/Tiny.pm ) which simulate a use as in many la

RE: MARC::Batch question

2011-10-14 Thread PHILLIPS M.E.
> I have to admit my Perl skill is very limited, so this may be a dumb question, > but I can't seem to find answer. When I use MARC::Batch to read records from > our catalog (III) export file, I can't seem to find a way to skip an error > record. When I ran the following against an III export M

Re: MARC::Batch

2007-02-26 Thread Edward Summers
On Feb 26, 2007, at 12:38 PM, John D Thiesen wrote: This is presumably an obvious question to most of you, but where do I get MARC::Batch? I used it about a year ago in a couple of Perl scripts to prepare Netlibrary records to upload into our catalog server. Since then I've changed desktop

RE: MARC::Batch

2007-02-26 Thread Bryan Baldus
On Monday, February 26, 2007 11:38 AM, John D Thiesen wrote: >This is presumably an obvious question to most of you, but where do I >get MARC::Batch? MARC::Batch is included as part of the MARC::Record distribution. Version 2.0.0 was recently (Jan. 25, 2007) released on CPAN: