Catman...r_than(3pm)

πŸ“¦
version 1.2025 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

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

okay bestie, welcome to Catmandu::Fix::Condition::greater_than β€” yes that's the whole name, she's long, she's giving main character with a lot of syllables ✨


🌸 NAME 🌸

Catmandu::Fix::Condition::greater_than β€” bestie, this one runs your fixes whenever a field is greater than a value. that's it. that's the whole job. and she does it flawlessly. πŸ’…


✨ SYNOPSIS ✨

okay so like, the vibe is: greater_than(X,Y) is true when X > Y. simple. iconic.

# greater_than(X,Y) is true when X > Y
if greater_than('year','2018')
 add_field('my.funny.title','true')
end

and THEN 🫢 β€” when you point it at an array, it gets picky in the best way. greater_than on arrays checks if all values are X > Y. not some. ALL. she does not do half measures, no cap.

# greater_than on arrays checks if all values are X > Y
if greater_than('years.*','2018')
  add_field('my.funny.title','true')
end
note the two spaces of indentation in that second example, bestie β€” the original keeps them and so do I. copy-paste energy must stay exact. 😭

πŸ¦‹ SEE ALSO πŸ¦‹

  • Catmandu::Fix::Condition::less_than β€” her literal opposite. the rival. the enemies-to-lovers arc. go read her too. πŸ’œ

and that's the whole page, babe!! 🌈 this beauty ships with perl v5.40.1, dated 2026-01-24, and lives in the User Contributed Perl Documentation, filed under the manual name Catman...r_than(3pm) (yes the title is abbreviated like that, the terminal was being dramatic πŸ’€).

okay bye ily, go fix some fields πŸŽ€πŸ«ΆπŸ’–

πŸ“¦ where this page comes from