Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Re: Re: Constant Variables

by zakb (Pilgrim)
on Mar 28, 2003 at 11:17 UTC ( #246448=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $x = "variable_name";
    my $value = "value";
    eval "\$$x = $value";
    warn $@ if $@;
    print $color1;
    
  2. or download this
    my %config;
    
    ...
    $config{color1} = "red";
    
    print $config{color1};
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://246448]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2022-09-29 02:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (125 votes). Check out past polls.

    Notices?