in reply to split chars in string

try
split'[\w|\W]';
Add codes if missing
or
my @array; for(0..$#string){ my $i = $_; push @array,substr($string,$1,1); }