Re: problem with naming of variables
- From: fraserbn@xxxxxxxxx (Brian Fraser)
- Date: Mon, 28 Mar 2011 12:59:54 -0300
On Mon, Mar 28, 2011 at 12:10 PM, Katya Gorodinsky <
Katya.Gorodinsky@xxxxxxxxxxx> wrote:
$random_bet_position = int(rand(3) + 1);Gosh no.
$name = 'bet' . $random_bet_position;
@selected_bet = @{$name};
No no no.
Don't do that.
http://perl.plover.com/varvarname.html
Brian.
- References:
- problem with naming of variables
- From: jj mahoney
- RE: problem with naming of variables
- From: Katya Gorodinsky
- problem with naming of variables
- Prev by Date: Re: problem with naming of variables
- Next by Date: Re: ternary operator
- Previous by thread: RE: problem with naming of variables
- Next by thread: Re: problem with naming of variables
- Index(es):