Small mistake in tutorial for MARC::Record
[email protected] ("Burton-West, Tom") Tue, 3 Apr 2012 16:01:31 +0000
| Newsgroups | perl.perl4lib |
|---|---|
| Message-ID | <C0551C512C863540BC59694A118452AA076738B2@ITS-EMBX-03.adsroot.itcs.umich.edu> |
Hello,
Unless I am doing something wrong, I think there is a minor mistake in the first example code in tutorial. This may discourage new users as executing the code produces the following message: "Undefined subroutine &MARC::Batch"
http://search.cpan.org/~gmcharlt/MARC-Record-2.0.3/lib/MARC/Doc/Tutorial.pod#Reading_a_record_from_a_file
Example R1:
Line 5 currently reads: 5 my $batch = MARC::Batch('USMARC', 'file.dat');
The "new" needed for creation of the batch object is missing. It should read:
5 my $batch = new MARC::Batch('USMARC', 'file.dat');
or alternately the line should match line 5 of Example R2
5 my $batch = MARC::Batch->new('USMARC','file.dat');
Tom Burton-West
[email protected]