Catman...l_match(3pm)

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

πŸ’– NAME πŸ’–

okay so bestie, gather round β€” Catmandu::Fix::Condition::all_match is the vibe check of fixes: it only lets your fixes run if all the path values match the given regex. all of them. every single one. no stragglers allowed. periodt ✨


🌸 SYNOPSIS 🌸

the receipts, in code, exactly as they are:

# uppercase the value of field 'foo' if all members of 'oogly' have the value 'doogly'
if all_match(oogly.*, "doogly")
  upcase(foo) # foo => 'BAR'
end

# case insensitive search for 'doogly' in all 'oogly'
if all_match(oogly.*, "(?i)doogly")
  ...
end

so like, first one: you're out here uppercasing foo only when every member of oogly is literally doogly β€” and then foo goes 'BAR', iconic πŸ’…

second one: same energy but case insensitive, because (?i) is that girl β€” she'll find doogly in any case, no cap. and then ... because the rest is your business 🫢


πŸ‘‘ SEE ALSO πŸ‘‘

  • Catmandu::Fix β€” go say hi to the whole family, they're the moment fr fr

k that's the whole page bestie, it's short but it ATE πŸ’–

sign-off time: this lil doc came from the User Contributed Perl Documentation, running under perl v5.40.1, dated 2026-01-24 β€” and yeah the title up top is the classic truncated Catman...l_match(3pm) situation, iykyk 😭✨

πŸ“¦ where this page comes from