diff --git a/lib/Catmandu/MARC/Tutorial.pod b/lib/Catmandu/MARC/Tutorial.pod index 71a2547..80c8b0e 100644 --- a/lib/Catmandu/MARC/Tutorial.pod +++ b/lib/Catmandu/MARC/Tutorial.pod @@ -460,7 +460,7 @@ We will use the L bind with a loop variable: # If the marc field is a 500 field if marc_has(500) # Set the indicator1 to value "0" - set_field(this.ind1,0) + set_field(this.*.ind1,0) # Store the result back into the MARC record marc_remove(500) marc_paste(this) @@ -480,7 +480,7 @@ We will use the L bind with a loop variable: # If the marc field is a 500 field if marc_has(500) # add a new subfield z - add_field(this.subfields.$append.z,Test) + add_field(this.*.subfields.$append.z,Test) # Store the result back into the MARC record marc_remove(500) marc_paste(this) @@ -492,7 +492,7 @@ We will use the L bind with a loop variable: # For each marc field... do marc_each(var:this) # If we have a non-numeric fields - unless all_match(this.tag,"\d{3}") + unless all_match(this.*.tag,"\d{3}") # Remove this tag marc_remove(***) end