Re: problem with naming of variables



On Mon, Mar 28, 2011 at 12:10 PM, Katya Gorodinsky <
Katya.Gorodinsky@xxxxxxxxxxx> wrote:

$random_bet_position = int(rand(3) + 1);

$name = 'bet' . $random_bet_position;
@selected_bet = @{$name};

No no no.
Gosh no.

Don't do that.
http://perl.plover.com/varvarname.html

Brian.