PROTECTED]
Skickat: den 6 november 2003 22:30
Till: Leif Andersson
Kopia: [EMAIL PROTECTED]
Ämne: Re: Return values from MARC::Record
On Thursday, November 6, 2003, at 01:14 PM, Leif Andersson wrote:
With the same BAD record we try $subfield = eval {
$record-field($tag)-subfield($sub
Perl programmers are familiar with this idiom, so I wouldn't worry
about it being hard to understand.
Paul.
-Ursprungligt meddelande-
Från: Paul Hoffman [mailto:[EMAIL PROTECTED]
Skickat: den 6 november 2003 22:30
Till: Leif Andersson
Kopia: [EMAIL PROTECTED]
Ämne: Re: Return values from
I think the return values from various methods in the MARC::Record distribution could
be more intuitive.
And also more consistent.
If we have a BAD record in $record and try to perform $record-field($tag) we get 0 in
return.
But if you try $record-subfield($sub) we get undef.
I would rather