in reply to Re: Array_ref into Array_ref Help.
in thread Array_ref into Array_ref Help.

Not really working loosing the value of $header.

Replies are listed 'Best First'.
Re^3: Array_ref into Array_ref Help.
by lostjimmy (Chaplain) on Apr 22, 2009 at 17:32 UTC
    loosing [sic] the value of $header.

    I'm not really sure what you mean. If you still need the header, you should be unshifting it onto $array_ref_b, just like you were doing in your original code. That's assuming that what you really want in the end is something along the lines of [ $header, $array_ref, $array_ref_b ].

    unshift @$array_ref_b, @$array_ref; unshift @$array_ref_b, $header;