Test::F...ect::Inc(3)
β¨ NAME β¨
Test::File::ShareDir::Object::Inc β Shared tempdir object code to inject into @INC. That's the whole NAME vibe, and this is the Test::F...ect::Inc(3) page from the User Contributed Perl Documentation collection, bestie π
π VERSION π
version 1.001002 β that's the version, no cap.
π¦ SYNOPSIS π¦
Here's the whole group-chat recipe, copied exactly so you can run it without guessing β¨:
use Test::File::ShareDir::Object::Inc;
my $inc = Test::File::ShareDir::Object::Inc->new();
$inc->tempdir() # add files to here
$inc->module_tempdir() # or here
$inc->dist_tempdir() # or here
$inc->add_to_inc;
πΈ DESCRIPTION πΈ
Ngl, this class doesn't do very much on its own.
It simply exists to facilitate tempdir creation, and the injection of those tempdir's into @INC. That's the assignment, and it ate. π
π₯ METHODS π₯
Okay so these are the moves this object knows about. Main character energy only β¨
π¨ add_to_inc β the deprecated one
DEPRECATED: Use register instead.
This is the old door, bestie. It's still a method, but the page says to use register instead β periodt.
register β¨
$instance->register;
Allows this Inc to be used.
Presently, this injects the associated tempdir into @INC.
Since 1.001000
clear π§Ή
$instance->clear();
Prevents this Inc from being used.
Presently, this removes the tempdir from @INC.
Since 1.001000
π ATTRIBUTES π
tempdirβ A path to atempdirof some description.module_tempdirβ ThemoduleShareDirbase directory within thetempdir.dist_tempdirβ ThedistShareDirbase directory within thetempdir.
π AUTHOR π
Kent Fredric <kentnl@cpan.org> β iconic, honestly π«Ά
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2017 by Kent Fredric <kentnl@cpan.org>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
K bye bestie π«Ά β this page is Test::F...ect::Inc(3), brought to you by perl v5.42.0, dated 2017-03-03. Slay. π
π
π¦ where this page comes from
- opensuse-leap 16.0: perl-Test-File-ShareDir 1.001002-160000.2.2 Β· Artistic-1.0 or GPL-1.0+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms