in reply to How to concatenate a generic array of arrays and an array of hashes

You know, it's pretty hard to understand what you want to accomplish... but I got an impression that you want to interleave your arrays somehow. You probably should use C-style 'for' loop for that.
my $array_size = @array; # scalar assignement yields the size (number +of elements) of @array for (my $i = 0; $i < $array_size; $i++) { print $array[ $i ][0], $array[ $i ][1], $array[ $i ][2]; # etc }
  • Comment on Re: How to concatenate a generic array of arrays and an array of hashes
  • Download Code

Replies are listed 'Best First'.
Re^2: How to concatenate a generic array of arrays and an array of hashes
by thanos1983 (Parson) on Jul 07, 2014 at 09:31 UTC

    Hello Anonymous Monk,

    You are absolutely right it is difficult to describe what I am trying to accomplish. I had in my mind your solution and I have actually tried it on a previous attempt to solve my problem but not successfully so far.

    Well I am trying to become familiar with 2 dimension arrays and hashes so I can manipulate the data in them by any possible way. This is my goal right now. Unfortunately this is the first time that I am using 2 dimension arrays and with hashes at the same time, so it takes a bit more time to understand how to use them.

    I have something in my mind if it works I will post my answer in case that I might assist someone on the future.

    Again I want to say thank you for your time and effort to assist me with my question.

    Seeking for Perl wisdom...on the process...not there...yet!