"Can't use an undefined value as an ARRAY reference at .." This means that it isn't an array ref, so there must be a problem elsewhere in your code. You can verify this by using Data::Dumper to print out some debugging info.
use Data::Dumper; print Dumper $::alpha{'a'}{'b'}; This will print the entire structure under 'b'. So verify that 'b' is a hashref with a key named 'c', and that 'c' is an arrayref. If you need to force 'c' to be an arrayref you can do this... unless ( ref $::alpha{'a'}{'b'}{'c'} eq 'ARRAY' ) { # not an array ref, so make it one! $::alpha{'a'}{'b'}{'c'} = []; } ....Or you could use similar code to issue a warning if it is not an arrayref, like this... unless ( ref $::alpha{'a'}{'b'}{'c'} eq 'ARRAY' ) { die "Error! Not an array ref!"; } Rob -----Original Message----- From: dodda satish [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 26, 2001 6:39 PM To: [EMAIL PROTECTED] Subject: question regarding hash hash hash array Hi , I have declared a hash hash hash array as $::alpha{'a'}{'b'}{'c'}=['p','q','r']; and when I do to put these in a local variable array as @::my_array=@{$::alpha{'a'}{'b'}{'c'} }; I get the values of the array when i use it in my test script, when when I include this in my main code i get the following error " Can't use an undefined value as an ARRAY reference at .." Any help is appriciated and thanks in advance ... Satish D _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]