esharris has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; use CGI qw/:standard/; use constant EARL => 'MEL'; use constant HARRIS => 'BROOKS'; my @a = map { lc($_) } (EARL, HARRIS); my $b = { EARL.HARRIS => 55 }; print join(' ', @a)."\n"; print join(' ', keys %{ $b })."\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: constant not evaluated
by dragonchild (Archbishop) on Sep 20, 2004 at 17:15 UTC | |
by Roy Johnson (Monsignor) on Sep 20, 2004 at 19:08 UTC | |
by esharris (Monk) on Sep 20, 2004 at 19:17 UTC | |
|
Re: constant not evaluated
by ikegami (Patriarch) on Sep 20, 2004 at 17:18 UTC | |
by TheEnigma (Pilgrim) on Sep 20, 2004 at 18:17 UTC | |
|
Re: constant not evaluated
by Fletch (Bishop) on Sep 20, 2004 at 18:08 UTC | |
|
Re: constant not evaluated
by ysth (Canon) on Sep 20, 2004 at 19:46 UTC |