my @list_of_characters = split //, 'a string'; #### for(my $i = 0; $i<=$mLength; $i++) { ... } #### for my $i (0 .. $mLength) { ... }