in reply to Re: Can't Use String as an Array Ref Help!
in thread Can't Use String as an Array Ref Help!

I am still getting stranger errors, I am combiing one array ref with another like this:
for my $i (0..$#$new_array_ref) { push @{$new_array_ref->[$i]}, @{ ref($sec_new_array_ref->[$i]) eq +'ARRAY' ? $sec_new_array_ref->[$i] : [(' ') x 3] +}; } unshift @{ $all_data_first }, $ref_header;

Replies are listed 'Best First'.
Re^3: Can't Use String as an Array Ref Help!
by ikegami (Patriarch) on Apr 23, 2009 at 19:47 UTC
    I have no idea what that is suppose to do.
      The $#$new_array_ref is the new array ref from the code sample above. The $ref_header is a variable that will add some more data using unshift, I think that the way this is
      push @{$new_array_ref} ,[$one, $two, $three, $four, $five, $six, $seve +n, $eight, $nine, $ten, $eleven];

      on the new array ref is where the bug is.

        You brought to us a problem with the structure of your data, but you haven't told us anything about how you want your data to be structured. I had to guess.

        And I indicated as much. When I suggested that change, I specified the condition under which it would help.

        Please provide better information.