CPANPL...:Memory(3pm)

πŸ“¦
version 0.9916 Β· 5 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– CPANPLUS::Internals::Source::Memory πŸ’–

okay bestie, so this one is literally the in memory implementation of the source thingy. no cap, it just vibes in RAM. ✨


✨ NAME ✨

CPANPLUS::Internals::Source::Memory β€” the in memory implementation, periodt. πŸ§ πŸ’…


🌸 DESCRIPTION 🌸

okay so this page is giving "the source, but make it memory." two methods, both absolute icons, both starting with __memory_ because they're internal and lowkey mysterious like that. πŸ¦‹


πŸŽ€ METHODS πŸŽ€

πŸ’œ $cb->__memory_retrieve_source(name => $name, [path => $path, uptodate => BOOL, verbose => BOOL])

bestie, this method retrieves a storabled tree identified by $name. it's literally going into the vault and pulling out the tree you asked for. 🌈

it takes the following arguments:

  • name β€” the internal name for the source file to retrieve. like, the tree's government name. πŸ‘‘
  • uptodate β€” a flag indicating whether the file-cache is up-to-date or not.
  • path β€” the absolute path to the directory holding the source files.
  • verbose β€” a boolean flag indicating whether or not to be verbose. spill the tea or don't, your call. πŸ«–
ngl, it will get information from the config file by default. that's the fallback vibe. πŸ’«

Returns a tree on success, false on failure. slay when it works, 😭 when it doesn't.


πŸ’– $cb->__memory_save_source([verbose => BOOL, path => $path])

this one saves all the parsed trees in storabled format β€” but only if Storable is available. so it's giving "i would, but do i have the range?" energy. if Storable isn't there, it can't do the thing. πŸ’€

it takes the following arguments:

  • path β€” the absolute path to the directory holding the source files. πŸ“
  • verbose β€” a boolean flag indicating whether or not to be verbose.
fr fr, it will get information from the config file by default.

Returns true on success, false on failure. no in-between, we don't do ambiguity here. ✨


πŸ’« SEE ALSO πŸ’«

nothing listed, bestie β€” this page is a solo main character. no cross-references, no entourage. πŸ‘‘


⭐ quick vibe check: both methods say "Will get information from the config file by default," so if you don't pass stuff in, that's where the deets come from. not me repeating it twice β€” the original does, and we keep every detail, always. πŸ’…

and that's the whole page, bestie!! πŸ’– this was perl v5.40.1, dated 2025-03-01, and the page is CPANPL...:Memory(3pm) β€” the name got a little truncated in the header like a text that got cut off mid-sentence, but we know who she is. mwah, ily, go retrieve some trees. πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from