Bio::EnsEMBL::Analysis::Tools Stashes
Included librariesPackage variablesGeneral documentationMethods
Toolbar
WebCvsRaw content
Package variables
Globals (from "use vars" definitions)
@EXPORT = qw( package_stash )
Included modules
Bio::EnsEMBL::Utils::Exception qw ( verbose throw warning )
Exporter
Inherit
Exporter
Synopsis
No synopsis!
Description
No description!
Methods
package_stash
No description
Code
Methods description
None available.
Methods code
package_stashdescriptionprevnextTop
sub package_stash {
    my ($packageName) = @_;  

    my %result ;  

    local (*alias);  
    *stash = *{"${packageName}::"};   

    while (($varName, $globValue) = each %stash) {   
        # only return the config hash 
next if $varName =~m/BEGIN/; next if $varName =~m/import/; *alias = $globValue; $result{$varName}=$alias if (defined ($alias)) ; $result{$varName}=\@alias if (defined (@alias)) ; $result{$varName}=\%alias if (defined (%alias)) ; } if (scalar(keys %result >1) ) { throw("Have more than one item exported from $packageName - you'll run into trouble\n") } my $hash_name = shift @{[(keys %result)]}; return [$result{$hash_name},$hash_name] ; } 1;
}
General documentation
No general documentation available.