CPANPL...::Fake(3pm)

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

πŸ’– CPANPL...::Fake(3pm) πŸ’–

okay bestie so this is CPANPL...::Fake, from the User Contributed Perl Documentation girlies, and honestly? it's giving backstage pass. it's the fake module object the CPANPLUS internals use when they just need a stand-in and don't wanna do a whole thing about it. no cap.


✨ NAME ✨

CPANPLUS::Module::Fake β€” the fake module object, strictly for internal use 🫢


🌸 SYNOPSIS 🌸

my $obj = CPANPLUS::Module::Fake->new(
            module  => 'Foo',
            path    => 'ftp/path/to/foo',
            author  => CPANPLUS::Module::Author::Fake->new,
            package => 'fake-1.1.tgz',
            _id     => $cpan->_id,
        );

look at her. she's fake but she's serving. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so basically this is the class for making fake module objects β€” little shortcut stand-ins that CPANPLUS uses internally when it doesn't need the real thing. lowkey iconic of her.

she inherits from CPANPLUS::Module. yes, the fake one still has the family name. it's giving nepo baby but make it functional. πŸ’€


πŸŽ€ METHODS πŸŽ€

πŸ’œ new( module => $mod, path => $path, package => $pkg, [_id => DIGIT] )

this makes you a dummy module object out of the parameters above. periodt.

it can also take more options β€” same ones as CPANPLUS::Module->new β€” but the ones listed up there? those are required, bestie. no skipping. πŸ™ˆ

so to recap, the required squad is:

  • module
  • path
  • package
  • and _id (which shows up in brackets in the signature because it's the optional-looking one, but the description says the above are required β€” so read the docs, not the vibes 😭)

ngl, if you're out here trying to use CPANPLUS::Module::Fake in your own code: it's internal use only. it's not for you. she's booked. 🧚

and that's the whole page, bestie β€” this was CPANPL...::Fake(3pm) as documented in perl v5.40.1, dated 2025-03-01. go forth and fake it till you make it. mwah. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«ΆπŸ‘‘πŸŒˆβ­

πŸ“¦ where this page comes from