Export...toClean(3pm)
π Exporter...toClean(3pm) π
okay bestie, come closer, this is the User Contributed Perl Documentation page for Exporter::AutoClean and it's lowkey genius, ngl.
β¨ NAME β¨
Exporter::AutoClean β it exports instant functions that are only available at compile time. Like, they show up, do their lil job, and then vanish. Main character behaviour fr fr. π
πΈ SYNOPSIS πΈ
use Exporter::AutoClean;
sub import {
my $caller = caller;
Exporter::AutoClean->export( $caller, sub_name => sub { # code... } );
}
see how clean that is?? obsessed. β¨
π¦ DESCRIPTION π¦
So basically? This is a simple wrapper module of B::Hooks::EndOfScope. It lets you export instant functions that are only available at compile time. That's it, that's the whole vibe. π
β SEE ALSO β
B::Hooks::EndOfScopenamespace::autoclean
go read those too bestie, iykyk π
π METHOD π
Exporter::AutoClean->export( $package, %export_functions );
Exporter::AutoClean->export(
$caller,
function_name1 => sub { # code },
function_name2 => \&code,
:
);
It exports the instant functions described in %export_functions to $package. π«Ά
And then β plot twist β these functions are automatically removed once compile time is done. gone. poof. no cap. πβ¨
π AUTHOR π
Daisuke Murase <typester@cpan.org>
π COPYRIGHT AND LICENSE π
Copyright (c) 2009 by KAYAC Inc.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. π
The full text of the license can be found in the LICENSE file included with this module.
and that's the whole page bestie!! this one came from perl v5.34.0, dated 2022-06-16, and the manual name was folded in right up top like a lil bow π β slay, go export something β¨π
π¦ where this page comes from
- debian bookworm: libexporter-autoclean-perl 0.01-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libexporter-autoclean-perl 0.01-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libexporter-autoclean-perl 0.01-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libexporter-autoclean-perl 0.01-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libexporter-autoclean-perl 0.01-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms