Help for this page

Select Code to Download


  1. or download this
            @EXPORT    = qw(afunc $scalar @array);   # afunc is a function
            @EXPORT_OK = qw(&bfunc %hash *typeglob); # explicit prefix on 
    +&bfunc
    
  2. or download this
      my $exports = \@{"$pkg\::EXPORT"};
      # ...
    ...
        s/^&//, $export_cache->{$_} = 1
          foreach (@$exports, @{"$pkg\::EXPORT_OK"});
      }
    
  3. or download this
    sub _rebuild_cache {
        my ($pkg, $exports, $cache) = @_;
    ...
        @{$cache}{@$ok} = (1) x @$ok;
        }
    }
    
  4. or download this
    sub heavy_export {
        # ...
    ...
    
        # ...
    }