How did you come to the conclusion that it is a AoA? In the code you're showing, it is a reference to an array. But, since it is a package variable, it may be that you change the contents of @log_lines somewhere else in your package, and thus the reference to it changes as well...