Hello everyone,
I'm trying to define a constant hash and have the following:
use constant STOPWORDS => map { lc $_ , 1 } qw(a about above across adj after);
I do not get a hash from this.
This does work, however:
my %stopwords = map { lc $_ , 1 } qw(a about above across adj after);
use constant STOPWORDS => \%stopwords;
I'm wondering what I'm doing wrong in the first definition.
Any help is appreciated!
Kevin
--
Kevin Old
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>