From 0ea1fa7dd21f09b04347396c05d6d4f18857ba8d Mon Sep 17 00:00:00 2001 From: Georg Mayr-Duffner Date: Thu, 22 Jun 2023 11:12:57 +0200 Subject: [PATCH] Add missing asterisks --- lib/Catmandu/MARC/Tutorial.pod | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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