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
; -Original Message- > From: Justin Rittenhouse [mailto:jritt...@nd.edu] > Sent: Wednesday, September 08, 2010 3:51 PM > To: perl4lib@perl.org > Subject: MARC::Field->subfields function > > I'm relatively new to Perl and very new to the MARC::Record module. > I&#

RE: MARC::Field->subfields function

2010-09-08 Thread Justin Rittenhouse
mber 08, 2010 4:58 PM To: Justin Rittenhouse; perl4lib@perl.org Subject: RE: MARC::Field->subfields function 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

RE: MARC::Field->subfields function

2010-09-08 Thread Bryan Baldus
On Wednesday, September 08, 2010 3:51 PM, Justin Rittenhouse [mailto:jritt...@nd.edu] wrote: >I'm relatively new to Perl and very new to the MARC::Record module. I'm >trying to use the subfields function (my @subfields = $field->subfields();), >but I'm getting an error: >Can't use an undefined

MARC::Field->subfields function

2010-09-08 Thread Justin Rittenhouse
I'm relatively new to Perl and very new to the MARC::Record module. I'm trying to use the subfields function (my @subfields = $field->subfields();), but I'm getting an error: Can't use an undefined value as an ARRAY reference at /usr/lib64/perl5/vendor_perl/5.8.8/MARC/Field.pm line 275. I'm n