in reply to Re^2: hash references
in thread hash references
No, @{$site1{$_}} is a "normal" array. Hopefully $site1{$_} is a reference to an array, otherwise you are in trouble (either you have "use strict" then this will give an error, without it you might get no error but it still won't work as you intent
What you probably want is something like $site1{$_}->[1]. This will access array index 1 of the array pointed to by $site{$_}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: hash references
by Anonymous Monk on Aug 01, 2011 at 12:19 UTC | |
by jethro (Monsignor) on Aug 01, 2011 at 14:36 UTC |