in reply to How to get each character in string value
You may want something like this?
use strict; use warnings; my $string = "Hello World"; while($string =~/./g){ print "$&\n"; }
Or,
use strict; use warnings; my $string = "Hello World"; my @string = split(//,$string); for my $str (@string){ print "$str\n"; }
Punitha
In Section
Seekers of Perl Wisdom