>update_leader() used to be really handy when you read in a MARC::Record from
>somewhere, changed or added a few fields.  Then to update the leader to
>reflect those changes you only had to call $record->update_leader() and not
>have to do any tedious and possibly incorrect calculations yourself to set
>the leader using $record->leader($text).
>
>but thought that update_leader() ought (and used) to do this for you (indeed
>we're not 100% sure our calculations are right, but they seem to work!).

MARC::File::USMARC will automatically create a leader for you if you
don't specify one - perhaps you could blank out the existing leader (or
to do as MARC::Record->new does, create a leader of 24 spaces), then
save as_usmarc, hoping to trigger the automatic creation?


-- Morbus Iff ( i put the demon back in codemonkey ) Culture: http://www.disobey.com/ and http://www.gamegrene.com/ My book, Spidering Hacks: http://amazon.com/exec/obidos/ASIN/0596005776/ icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus



Reply via email to