Catman...d::with(3pm)
πΈ Catmandu::Fix::Bind::with πΈ
ok so bestie, welcome to Catmandu::Fix::Bind::with from the User Contributed Perl Documentation π β it's a binder that computes Fix-es in the context of a path. yes, that's the whole vibe. let's get into it π«Ά
β¨ NAME β¨
Catmandu::Fix::Bind::with β a binder that computes Fix-es in the context of a path. she's giving scope, she's giving context, she's literally the main character of your nested data π
π¦ SYNOPSIS π¦
ok so picture this. here's your input data:
# Input data
data:
- name: patrick
- name: nicolas
and here's the Fix, no cap:
# Fix
do with(path:data)
if all_match(name,nicolas)
reject()
end
end
and boom, this is what you get:
# will produce
data:
- name: patrick
patrick stays, nicolas said bye π and honestly? that's the whole point. slay β¨
π DESCRIPTION π
so the "with" bind lets you run fixes in the scope of a path. it's like giving your fixes their own little room to exist in, and everything inside only sees that room π
say you've got a deep nested data structure that looks like this:
my:
deep:
field:
name: James Brown
then these two fixes are equal β like, same energy, same result, fr fr:
add_field(my.deep.field.style, funk)
do with(path:my.deep.field)
add_field(style,funk)
end
see what she did there? instead of writing out the whole long path every single time, you just do with(path:my.deep.field) and then everything inside is relative to that. lowkey genius, highkey iconic π
π CONFIGURATION π
π path
The path to a list in the data.
that's it. that's the whole config. simple, clean, does exactly what it says on the tin π
π SEE ALSO π
Catmandu::Fix::Bindβ go read this one too bestie, it's the whole family π§
and that's the page!! this was perl v5.40.1, dated 2026-01-24, from the User Contributed Perl Documentation β tysm for reading, mwah, go fix some data π β¨
π¦ where this page comes from
- ubuntu resolute: libcatmandu-perl 1.2025-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-perl 1.2025-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms