in reply to using quotes in hash keys
You have to place the literal in quotes if it contains white space or other characters that confuse the compiler.$baseball_team{'Los Angeles'} = 'Dodgers';
Futher example, these are not the same:
Jeff# example 1 $you_never_give_me_any{$money}; # key equals value of $money # example 2 $you_never_give_me_any{'$money'}; # key equals literal string '$mone +y' # example 3 $you_never_give_me_any{"$money"}; # key equals value of $money
R-R-R--R-R-R--R-R-R--R-R-R--R-R-R--
L-L--L-L--L-L--L-L--L-L--L-L--L-L--
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (jeffa) Re: using quotes in hash keys
by Xxaxx (Monk) on Mar 27, 2001 at 17:39 UTC |