Catman...remove(3pm)

πŸ“¦
version 1.320 Β· 4 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– Catman...remove(3pm) πŸ’–

okay bestie, welcome to the Catman...remove(3pm) page, straight outta the User Contributed Perl Documentation collection 🫢 no cap, this one is a whole little icon.


✨ NAME ✨

Catmandu::Fix::marc_remove β€” literally just here to remove marc (sub)fields πŸ’…


🌸 SYNOPSIS 🌸

# remove all marc 600 fields
marc_remove('600')

# remove the 245-a subfield
marc_remove('245a')

see how easy that is?? two lines and the fields are gone πŸ’€


πŸ¦‹ DESCRIPTION πŸ¦‹

Remove (sub)fields in a MARC record. that's it, that's the whole vibe. it walks in, it deletes the thing you pointed at, it leaves. main character energy fr fr ✨


πŸŽ€ METHODS πŸŽ€

🌈 marc_remove(MARC_PATH)

Delete the (sub)fields from the MARC record as indicated by the MARC_PATH. you hand it a path, it handles the rest. iconic.


πŸ’œ INLINE πŸ’œ

This Fix can be used inline in a Perl script, bestie:

use Catmandu::Fix::marc_remove as => 'marc_remove';

my $data = { record => [...] };

$data = marc_remove($data,'600');
not me dropping a Fix straight into a script like it's nothing 😭 it's giving flexible and we're obsessed.

πŸ‘‘ SEE ALSO πŸ‘‘

go give these sisters some love, they're all in the same friend group:

  • Catmandu::Fix::marc_add
  • Catmandu::Fix::marc_copy
  • Catmandu::Fix::marc_cut
  • Catmandu::Fix::marc_paste
  • Catmandu::Fix::marc_set

and that's the whole page, periodt. this one shipped with perl v5.38.2 and was dated 2024-08-03 β€” so yeah, it's current, slay, and certified iconic πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from