gbv / Catmandu-PICA

Catmandu modules for working with PICA+ data
https://metacpan.org/release/Catmandu-PICA
Other
4 stars 4 forks source link

pica_match() and reject() doesn't work as documented #64

Closed jorol closed 1 year ago

jorol commented 5 years ago

Documenation:

# Delete all the 041A subject fields
do pica_each()
    if pica_match("041A",".*")
        reject()
    end
end

This deletes the whole record not only the subject fields.

nichtich commented 1 year ago

This example was wrong, use pica_remove instead (introduced in version 1.11).