Catman...arc_add(3pm)

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

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

okay bestie, so this page is literally called Catman...arc_add(3pm) (yes the name is truncated, we don't make the rules, we just vibe with it) and it lives in the User Contributed Perl Documentation section of the manual. it's the 3pm flavor, so it's a Perl module page. and uh… it's deprecated. we'll get to that. 🫢


🌸 NAME 🌸

Catmandu::Fix::Inline::marc_add β€” a marc_add-er for Perl scripts. and yes, it is DEPRECATED. no cap, they put it right in the NAME section, that's how serious they are about it. πŸ’€


✨ SYNOPSIS ✨

here's the whole vibe, copy-paste ready:

use Catmandu::Fix::Inline::marc_add qw(:all);

# Set to a literal value
my $data  = marc_add($data, '245',  a => 'value');

# Set to a copy of a deeply nested JSON path
my $data  = marc_add($data, '245',  a => '$.my.deep.field');

so you pull in the whole module with qw(:all), and then it's just marc_add($data, '245', a => 'value') energy. first example sets that a subfield to a literal 'value'. second one? it sets it to a copy of a deeply nested JSON path β€” that's the '$.my.deep.field' bit, and yes the $ and the dots are doing heavy lifting there. 🌟


🚨 DEPRECATED 🚨

okay bestie, sit down, this is the important part.

This module is deprecated. Use the inline functionality of Catmandu::Fix::marc_add instead.

like. that's it. that's the whole section. the module still exists, but it's giving "we're not mad we're just disappointed" and you should lowkey migrate. use the inline functionality of Catmandu::Fix::marc_add. periodt. πŸ’…


πŸ‘€ SEE ALSO πŸ‘€

  • Catmandu::Fix::marc_add β€” the glow-up. the replacement. the main character. go here instead, fr fr. πŸ‘‘

🌈 ✨ πŸŽ€ that's the whole page, bestie πŸŽ€ ✨ 🌈

this was served up from the perl v5.38.2 docs, dated 2024-08-03, and honestly it ate. now go use Catmandu::Fix::marc_add like a responsible icon. mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from