I am doing a program in perl where the data structure is like: $my_global{'Networks'} = {}; $my_global{'Networks'}{'values'}[0]='Extranet'; $my_global{'Networks'}{'values'}[1]='Intranet'; $my_global{'Networks'}{'values'}[2]='Monitoring'; $my_global{'Networks'}{'values'}[3]='Management'; $my_global{'Networks'}{'values'}[4]='Localhost';

Or if a try to use funtion key to retrieve the hash's keys: Type of arg 1 to keys must be hash (not hash element) at ./grepGlobal.sh line 57, near "})" Execution of ./grepGlobal.sh aborted due to compilation errors.

I tried to use references like $$ ${} \$ etc, but I couldn't find a solution. Anybody kind to help me?