Export...erator(3pm)
β¨ NAME β¨
Exporter::Declare::Export::Generator β bestie, this is the export class for exports that should be generated when imported π (yes, generated on the fly, main character behavior fr)
(also hi, this page lives in the User Contributed Perl Documentation section, 3pm, iykyk π)
πΈ DESCRIPTION πΈ
Okay so. Export class for exports that should be generated when imported. That's it, that's the whole vibe β it's the class that handles exports that don't exist yet until somebody imports them. Lowkey magical. β¨
π OVERRIDEN METHODS π
(not a typo, that's literally how it's spelled, don't come for me π)
$class->new( $ref, $ref, exported_by => $package, type => $type, %data )β the constructor, and no cap: you must specify the type as'sub'or'variable'. Those are your only two options bestie, pick one. π$export->inject( $package, $name, @args )β callsgenerate()with@argsto create a generated export. Then the new export gets injected. The way it generates then injectsβ¦ obsessed. π
π¦ ADDITIONAL METHODS π¦
$new = $export->generate( $import_class, @args )β generates a new export object. Fresh out the oven, brand new, slay. π$type = $export->type()β returns the type of object to be generated (suborvariable). Just a lil vibe check on what we're making. π
π AUTHORS π
Chad Granum exodist7@gmail.com
π COPYRIGHT π
Copyright (C) 2010 Chad Granum
Exporter-Declare is free software; Standard perl licence.
Exporter-Declare is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.
π«Ά fr fr, that's the legal bit, don't skip it β "useful but no promises" is the whole energy.
okay bye bestie, this was perl v5.34.0, dated 2022-06-13, and it ate π
β¨ no notes, periodt πΈ
π¦ where this page comes from
- debian bookworm: libexporter-declare-perl 0.114-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libexporter-declare-perl 0.114-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libexporter-declare-perl 0.114-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libexporter-declare-perl 0.114-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libexporter-declare-perl 0.114-2 Β· 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