With arrays I always use print Dumper(\@array); for clarity.
In reply to Re: Foreach loop not looping?! by moritz in thread Foreach loop not looping?! by rjberry