Catman...x::eval(3pm)
π NAME π
Catmandu::Fix::eval β bestie, this one evals and runs fixes that you defined inside a field β¨
It's giving "fixes inside your fixes", and honestly? iconic π
πΈ SYNOPSIS πΈ
# {fixes => 'add_field(foo,bar)'}
eval(fixes)
# {fixes => 'add_field(foo,bar)', foo => 'bar'}
# {fixes => ['add_field(foo,bar)','upcase(foo)'], foo => 'bar'}
eval(fixes)
# {fixes => ['add_field(foo,bar)','upcase(foo)'], foo => 'BAR'}
okay so the vibe check here: you hand eval a field named fixes, and it literally takes whatever fixes are chillin' in there and executes them π«Ά
fixesis a string β it's one single fix, and it runs. In the example,add_field(foo,bar)gets evaluated, and boom,foo => 'bar'shows up in your record πfixesis an array β it's a whole list of fixes, and they all run, in order. In the example,add_field(foo,bar)runs and thenupcase(foo)runs, sofoo => 'bar'becomesfoo => 'BAR'π₯
no cap, that's the whole thing. the fixes live in your data, and eval is the one that makes them happen β¨
π¦ SEE ALSO π¦
Catmandu::Fixβ the main character, go read it π
perl v5.40.1 π 2026-01-24 β and that's the tea from the Catmandu::Fix::eval(3pm) manual page, which is part of the User Contributed Perl Documentation bestie, so if you ever forget these deets they're right there at the bottom of the page π mwah, go eval some fixes, periodt π
π
π¦ 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