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};