Re: Deleting a subfield using MARC::Record

2006-04-29 Thread Mark Jordan
Edward Summers wrote: Deleting subfields is a bit tricky since subfields may repeat, and sometimes people just want to delete one of them. An unfortunate state of affairs perhaps. Yeah, I can see what you're saying, but doesn't that also apply to repeatable fields? If a particular subfield

Re: Deleting a subfield using MARC::Record

2006-04-29 Thread Edward Summers
On Apr 29, 2006, at 1:08 AM, Mark Jordan wrote: Edward Summers wrote: Deleting subfields is a bit tricky since subfields may repeat, and sometimes people just want to delete one of them. An unfortunate state of affairs perhaps. Yeah, I can see what you're saying, but doesn't that also

Re: Deleting a subfield using MARC::Record

2006-04-29 Thread Michael Kreyche
Edward Summers wrote: That could work if subfields were objects, but they're just strings. It could simply delete all of them unless a second parameter is passed in, which would basically act like a filter: $field-delete_subfield('a', qr/badsubject/); That sounds pretty good, though I'm

Re: Deleting a subfield using MARC::Record

2006-04-29 Thread Mark Jordan
Edward Summers wrote: On Apr 29, 2006, at 1:08 AM, Mark Jordan wrote: Edward Summers wrote: Deleting subfields is a bit tricky since subfields may repeat, and sometimes people just want to delete one of them. An unfortunate state of affairs perhaps. Yeah, I can see what you're saying, but