Re: Trailing spaces

2003-12-12 Thread Leif Andersson
I think there are some problems with your code. First, a number of typos, so it won't compile. Second, if $tagnumber is a repeatable field you will only fix the first one. You would have to do something like this instead: my @existing_fields = $record->field($tagnumber); And then loop through the

Trailing spaces

2003-12-11 Thread Bryan Baldus
I am cleaning up a number of MARC records, and would like to remove any extra spaces at the end of the last subfield in each field > 010 (since the 010 has special spacing requirements). Would code similar to that below do what I want? (based on tutorial example 18 (v. 1.32), with it's code up to