On Mon, Jul 19, 2004 at 09:37:09AM -0400, Liao, Clara wrote:
> If I am creating a new Mark record and have several fields to add, how
> should I do?
You can pass multiple MARC::Field objects to append_fields().
$record->append_fields(
MARC::Field->new( 500, '', '', a => '1st note.' ),
MARC::Field->new( 500, '', '', a => '2nd note.' ),
MARC::Field->new( 500, '', '', a => '3rd note.' ),
);
The reason why add_field() is deprecated is that several people
requested functionality to insert fields at particular places, so
add_fields() became append_fields() to more accurately describe what the
method does.
//Ed