coopermc has asked for the wisdom of the Perl Monks concerning the following question:
What I need is the ability to change the value of $color_opt later on in the script, and have the value automatically update in the hash definition. So let's say I set $colot_opt = "blue" at some point and print out the "text" key value, then it should display "blue", and not whatever $color_opt was initially defined to be. How do I do this? Thanks - Stephen"text" => <<"TEXTEND", We play the same game again, but with a different proportion of colore +d balls in Box K (see below). Everything else is the same. <p> You can choose between box U or box K, both containing 100 balls of five different colors. One ball will be drawn from the box you have + chosen. You win $1,000 if a $color_opt ball is drawn. <p> Please select the box of your choice: U or K. If you think both boxes are equally attractive, you can select Indiffe +rent. TEXTEND
|
|---|