Re: MARC::Field->subfields function

2010-09-09 Thread Galen Charlton
Hi, On Thu, Sep 9, 2010 at 5:57 AM, Colin Campbell wrote: > On 08/09/10 22:07, Justin Rittenhouse wrote: > Taking a look at MARC/Field.pm there's a bit of shaky error handling. > subfields checks to see if its a control field, warns that it is then > proceeds to try and return the non-existent ar

Re: MARC::Field->subfields function

2010-09-09 Thread Colin Campbell
On 08/09/10 22:07, Justin Rittenhouse wrote: > Ahh...I bet that's it...and I see an "is control field" function which should > allow me to skip those and only hit the fields that should have tags. That > did it. Thanks! > Taking a look at MARC/Field.pm there's a bit of shaky error handling. su

RE: MARC::Field->subfields function

2010-09-09 Thread Gorman, Jon
And what field are you pulling? Does it have subfields? Are you sure you're using the same variable? Seeing more of your code might make it easier to guess. Not all marc fields have to have subfields. Not sure what MARC::Field returns if it does not have any. If it returns undefined, that