Since you have my @Result inside the loop, each iteration of the use creates a new @Result variable, which holds at most one item at the end of each iteration, because you push at most one line to it in each iteration.
$Outcome is a reference to the last of the arrays you create.
I guess what you actually want is to move the my @Result outside of the loop.
Also there's no reason for initializing the new array with () - my gives you a perfectly fine empty array already.
See also: Coping with Scoping.
In reply to Re: Array reference
by moritz
in thread Array reference
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |