Shawn Corey wrote: > John W. Krahn wrote: >> Shawn Corey wrote: >>> for my $key ( sort keys %{ { STOPWORDS } } ){ >>> my $value = ${ { STOPWORDS } }{$key}; >> >> >> In both lines you are copying the entire list to an anonymous hash. >> If you >> want efficient code (and less punctuation) you should just use a hash. > > Efficiency. There's that word again. If you truly want efficient code > you won't create subroutines that return lists. They would return > references to the lists or store them in global arrays.
You can't create a reference to a list. John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>