Being very new to Perl, this had me hung up for days.

In the MARC::Batch example is this line:

5 my $batch = MARC::Batch('USMARC', 'file.dat');

I just found out it should be:
5 my $batch = MARC::Batch->('USMARC', 'file.dat');

I was very confused on why the code I copied and pasted wouldn't even give
me a proper error, just declare the function unknown.  (Even uninstalled and
reinstalled the MARC::Record module.)
On the plus side, I learned a lot about Perl error messages and debugging
tools in the last few days.  :)

Thanks for creating MARC::Record.

Mike Barrett

Reply via email to