AAT::Utils(3)

πŸ“¦ version 1.0.6, in ubuntu jammy

πŸ’– AAT::Utils β€” the AAT Utils module, bestie edition πŸ’–

okay so. this is AAT::Utils, a lil Perl module from the AAT Utils family, and it lives in section 3 of the manual (AAT::Utils(3)). it's a grab-bag of tiny helper functions that do the "wait why is this one line of code so annoying" jobs for you. no cap, it's giving utility belt. πŸ¦‹


✨ FUNCTIONS ✨

πŸŽ€ ARRAY($value)

converts $value into an array. the whole vibe is just

@{$value}

slay. array acquired. πŸ’…

πŸŽ€ ARRAY_REF($value)

converts $value into an array reference. literally:

\@{$value}

one backslash and suddenly it's a reference. main character energy. πŸ”₯

πŸŽ€ HASH($value)

converts $value into a hash. yes bestie, it's

%{$value}

hashified. periodt. πŸ’œ

πŸŽ€ HASH_KEYS($value)

hands you the keys for that converted hash $value. underneath it's serving

keys %{$value}

all the keys, no crumbs left. πŸ‘‘

πŸŽ€ NOT_NULL($value)

checks that the value $value is not null β€” and by null we mean undef or ''. that's the whole test. 🌸

πŸŽ€ NULL($value)

the mirror twin πŸͺž β€” checks that the value $value is null, meaning undef or ''. again, those two things and nothing else.

πŸŽ€ Now()

returns the current date (like, now now, the actual moment) as an Array in this order:

  • YYYY
  • MM
  • DD
  • HH
  • MM
  • SS

(two MMs bestie, one is months and one is minutes, iykyk πŸ•°οΈ)

πŸŽ€ Now_String()

gets you the actual time as a string in the format "YYYY/MM/DD HH:MM".

Returns:

  • $now_string β€” a string formatted as "YYYY/MM/DD HH:MM"

🌈 AUTHOR 🌈

Sebastien Thebert <octo.devel@gmail.com> β€” thank you for your service, king 🫢


and that's the whole page, bestie!! this was documented for perl v5.22.2, dated 2016-05-04, so it's a little vintage but it still eats πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from