use strict; use warnings; my @array = qq(bla bla2 bla3); for ( my $cnt = 0; $cnt<=@array; $cnt++) { print $array[$cnt]; }