I would like to make a suggestion for a functionality enhancement to MARC::Record. This is really more of a tweak than anything else.

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 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?

For some reason I expected the same behavior from both methods. Perhaps others would like this feature implemented as well. I've found many instances where this would be handy (for example, pulling out all 7XX added entry subfield $a's, etc.). Others please chime in if they think that this would be helpful. I realize that this same thing could be implemented with existing module functionality by simply adding a couple of lines of code, but if it would be easy to add to the method, I think it would be worthwhile.

Thanks,

Rob

Robert Fox
Sr. Programmer/Analyst
University Libraries of Notre Dame
(574)631-3353
[EMAIL PROTECTED]



Reply via email to