use warnings; $holding[0]="green"; $holding[1]="blue"; $holding[2]="yellow"; # or shorter: @holding= ("green","blue","yellow"); for ($count = 2; $count >= 0; $count--) { print $holding[$count]; #see, no need for a temporary variable }