Created
August 4, 2011 01:55
-
-
Save exodist/1124341 to your computer and use it in GitHub Desktop.
Modifying exports in before_export.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub before_import { | |
my ( $dest, $spec ) = @_; | |
if ( $spec->config->{someoption} ) { | |
$spec->exports->{foo} = [ | |
Exporter::Declare::Export::Sub->new( | |
sub { ... }, | |
exported_by => __PACKAGE__, | |
), | |
{}, | |
[] | |
]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment