Wednesday, September 5, 2007

Perl

foreach $ss (sort (Value(%keyword))) {

When This Occurance how will get both Key and Value of Hash Array (%Keyword)

GK Venkatesan

1 comment:

Jaiganesh C said...

Hi,

This is not possible i think. Because we can able to store same values to different keys.

Please see the definition of Associative array
Associative arrays are created with a set of key/value pairs. A key is a text string of your choice that will help you remember the value later. The value, then, is the value of the variable you want to store.

Jaiganesh C