in reply to How to get each character in string value

my $string = "Hello World"; my $revcopy = reverse $string; print chop($revcopy) . "\n" for 1 .. length($string);

while (defined(my $chr = chop $revcopy)) { print "$chr\n"; }

Update: Corrected bug.