On Mar 4, 2004, at 12:44 PM, Robert Fox wrote:
I just debugged a program where I was expecting a list to be returned
from the $record->subfield($field, $subfield) method and instead was
returned a scalar of the first instance of that combination found.
Would it be possible to change the function
> possible to change the functionality of this method so that it returns a
> list of all instances in list context and the first instance in scalar
> context similar to the $record->field($field) method?
The way to do it now is to
my $field = $marc->field( '245' );
my @fields = $field->subfields