in reply to Accessing multiple Arrays and

First, are you running under strict and warnings? This may be helpful.

Putting a print of @tfl_line right after the foreach can help too. Are you sure it's slot 9? It's easy to make a mistake when the array has several elements. In particular, slot 9 is the 10th one, because arrays start with 0. I don't know much about your data but maybe @tfl_file can be an array of hashes instead of a 2d array?

Replies are listed 'Best First'.
Re^2: Accessing multiple Arrays and
by rheaton (Acolyte) on Dec 28, 2006 at 18:03 UTC
    I am sure about slot 9 I can print it if I simply remove the "foreach $target_table (@tfl_list)" loop.
      So what is the exact error you're getting? Empty $tfl_line->[9] ? Or the "#Do Something" is never executed ?

        "#Do Something" is never executed because $tfl_line->9is always empty. I started a new thread after using the Dumper and found out that apparently the Arrays are not being built properly.