From: Phrogz Date: 2006-12-22T13:40:12+09:00 Subject: Re: storing values in variables Vikash Kumar wrote: [snip] > parse_nested_array(output[2][4]) > > It displays the output like this: > > [0] { > 2004 > } > [1] { > 65 > } > [2] { > 58 > } > [3] { > 89.23 > } > > I want to store the value 2004, 65, 58, 89.23 in variables like this: > > aa = 2004 > > ab = 65 > > ac = 58 > > ad = 89.23 Do you need them to be local variables, or can they be instance variables, or symbols in a hash? Do you want them to be sequentially labelled, like you have them here (e.g. 'aa' .. 'zz' ) or are those just example names? Would you instead want to supply an array of strings that are the names for each element? Does all the HTML processing have anything to do with this, or is it just that you have a nested array that you want to 'splat' to varaibles?