Re: Finding the value of a key in a hash

2005-07-12 Thread John W. Krahn
Dave Adams wrote: %vegetable_costs = (Beans => 300 Carrots => 200, Apple => 250 ); Apples are a vegetable? To get the value of the key called Beans you use $vegetable_costs{Beans} . How do you do the reverse and get the v

Re: Finding the value of a key in a hash

2005-07-12 Thread Wiggins d'Anconia
Dave Adams wrote: > %vegetable_costs = (Beans => 300 >Carrots => 200, >Apple => 250 ); > > To get the value of the key called Beans you use $vegetable_costs{Beans} . > > How do you do the reverse and get the value of the key

Finding the value of a key in a hash

2005-07-12 Thread Dave Adams
%vegetable_costs = (Beans => 300 Carrots => 200, Apple => 250 ); To get the value of the key called Beans you use $vegetable_costs{Beans} . How do you do the reverse and get the value of the key? Anyone? -- To unsubscribe, e