8 # Getting the marcfields as an array
9 my @marcfieldsarray = split('\|', $string);
11 # Separating the marcfields from the the user-supplied headers
13 foreach (@marcfieldsarray) {
14 my @result = split('=', $_);
15 if (scalar(@result) == 2) {
16 push @marcfields, { header
=> $result[0], field
=> $result[1] };
18 push @marcfields, { field
=> $result[0] }
23 print Dumper
(@marcfields);
26 foreach (@marcfields) {