in reply to using other variables as keys to hash
The additional currlies clarify which potion is the hash reference, and which part is the key.print("$simpsons{father}\n"); print("$$string{mother}\n"); print("${$array[0]}{son}\n"); print("${$hash{family}}{daughter}\n");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: using other variables as keys to hash
by davorg (Chancellor) on Sep 12, 2001 at 15:18 UTC | |
by MZSanford (Curate) on Sep 12, 2001 at 16:27 UTC |