CPAN::...::Util(3pm)

πŸ“¦
version 0.220 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

CPAN::SQLite::Util β€” bestie, this one's the lil' export hub that hands out the common data structures that the CPAN::SQLite::* squad all share. It's giving "backstage pass" energy. ✨


πŸŽ€ VERSION πŸŽ€

version 0.220 β€” yes queen, that's the one. πŸ’…


🌸 DESCRIPTION 🌸

okay so. This module exports some common data structures used by other CPAN::Search::Lite::* modules. And right now, at present, the lineup is these cuties:

  • $table_id β€” this is a hash reference. The keys are the tables used, and the values are the associated primary keys. iykyk. πŸ’–
  • $full_id β€” also a hash reference. Here the keys are the primary keys of the tables, and the values are the associated fully qualified primary keys (ie, with the table name prepended). so it's the same info but dressed up all fancy. ✨
  • $mode_info β€” a hash reference whose keys are the allowed modes of CPAN::Search::Lite::Query, and whose associated values are hash references with the keys "id", "name", and "text", describing what columns to use for that key. literally a whole little lookup table, no cap. 🌈
  • $query_info β€” a hash reference whose whole purpose is to provide shortcuts to making queries using CPAN::Search::Lite::Query. The keys of this reference are the shortcut name, and the associated value is a hash reference specifying the required mode and type keys. shortcuts = main character energy fr fr. πŸ‘‘
  • "vcmp" β€” bestie, this routine is a whole vibe check for versions. You use it like this:
if (vcmp($v1, $v2) > 0) {
  print "$v1 is higher than $v2\n";
}

and what it does is compare two versions, returning 1/0/-1 if the first argument is considered higher/equal/lower than the second. Under the hood it uses "Sort::Versions". iconic behavior honestly. πŸ¦‹


and that's the whole page, bestie!! 🫢 this one shipped with perl v5.36.0 and is dated 2022-10-30, so go forth and query responsibly. mwah. πŸ’œπŸŽ€βœ¨

πŸ“¦ where this page comes from