Catman...:reject(3pm)

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

🌸 NAME 🌸

okay so bestie, welcome to Catmandu::Fix::reject β€” she's a Perl module and her whole job is removing a record form the data. (yes "form", that's literally how the page spells it, the typo is canon, do not perceive me πŸ˜­πŸ’…)

It's giving: you've got a pile of records and you're like "not this one, not today" and reject is the fix that handles it.


✨ SYNOPSIS ✨

here's the vibe, copy-paste ready, zero notes taken away:

# Reject all items from from the output
reject()

# Reject all items with have an 'ignore_me' field
reject exists(ignore_me)

# Reject all items with have a 'ignore' field with value 'true'
reject all_match(ignore,true)

# Select all items
select()

# Select only those items that have an 'include_me' field
select exists(include_me)

# Select only those items that have an 'include' field with value 'true'
select all_match(include,true)

lowkey the whole thing is symmetrical: reject yeets the ones that match, select keeps only the ones that match, and the condition you hand them is the same kind of condition either way β€” exists(...) for "does this field even show up", all_match(field,value) for "does this field hold exactly this value". pick your fighter. πŸ‘‘

ngl the comments in the synopsis are reproduced exactly as they live in the original, quirks and all β€” "from from" and "with have" are hers, I'm just the messenger 🫢

πŸ’– SEE ALSO πŸ’–

  • Catmandu::Fix β€” go say hi to the parent, that's where the rest of the fix family hangs out πŸ¦‹

and that's the whole page, bestie, short and slay. this lil manual comes from Perl version v5.40.1, dated 2026-01-24, and it's filed under the user contributed Perl documentation for Catman...:reject(3pm). mwah, take care of her πŸŽ€βœ¨

πŸ“¦ where this page comes from