into your module code. But this is not a good idea. what about returning a reference to the new created %somewords?@EXPORT = qw (loadwords %some_words);
sub loadwords { my @words = qw(a able about above across actually after again all) +; my %some_words; foreach (@words) { $some_words{$_} = "1"; } return \%some_words; }
In reply to Re: Re: Re: Creating hashes into a module.
by borisz
in thread Creating hashes into a module.
by vitojph
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |