Env-Export
view release on metacpan or search on metacpan
lib/Env/Export.pm view on Meta::CPAN
# Values that are tweaked by keywords that may appear in the @patterns
# stream:
my $warn = 1;
my $link = 0;
my $prefix = q{};
my $override = 0;
my $split = q{};
# Establish the set of allowable %ENV keys that are eligible for export.
# This will avoid repeated iterations over %ENV later, and will remove
# any keys that could not be used to create valid sub names
my @choices = grep { /^[A-Za-z_]\w*$/ } keys %ENV;
# This list will accumulate the set of subs to be created, in the form of
# metadata:
my @subs = ();
while (my $pat = shift @patterns)
{
# This would be a lot cleaner if I could assume the presence of the
# "switch" statement. But I'm not ready to limit this code to 5.10+
( run in 0.378 second using v1.01-cache-2.11-cpan-71847e10f99 )