shemp has asked for the wisdom of the Perl Monks concerning the following question:
I want this code to set $value = BLAH;use strict; use constant BLAH => 5; my $name = "BLAH"; my $value = (something)$name
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: constant name in variable
by sauoq (Abbot) on Dec 02, 2002 at 22:04 UTC | |
|
Re: constant name in variable
by dpuu (Chaplain) on Dec 02, 2002 at 20:40 UTC | |
by shemp (Deacon) on Dec 02, 2002 at 20:43 UTC | |
|
Re: constant name in variable
by rir (Vicar) on Dec 02, 2002 at 20:45 UTC | |
|
Re: constant name in variable
by shemp (Deacon) on Dec 02, 2002 at 21:13 UTC | |
by rir (Vicar) on Dec 02, 2002 at 22:01 UTC | |
by shemp (Deacon) on Dec 02, 2002 at 22:16 UTC |