---
name: "Exporter::Declare::Export::Generator"
section: "3pm"
platform: "linux"
package: "libexporter-declare-perl"
version: "0.114-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Exporter::Declare::Export::Generator"
---

# Exporter::Declare::Export::Generator(3pm)

Export class for exports that should be generated when imported.

## NAME

Exporter::Declare::Export::Generator - Export class for exports that should be generated when imported.

## DESCRIPTION

Export class for exports that should be generated when imported.

## OVERRIDEN METHODS

- $class-\>new( $ref, $ref, exported\_by =\> $package, type =\> $type, %data )

  You must specify the type as 'sub' or 'variable'.

- $export-\>inject( $package, $name, @args )

  Calls **generate()** with `@args` to create a generated export. The new export is then injected.

## ADDITIONAL METHODS

- $new = $export-\>generate( $import\_class, @args )

  Generates a new export object.

- $type = $export-\>**type()**

  Returns the type of object to be generated (sub or variable)

## 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.
