in reply to foreach (each character in string..)?
Usually you just split the string:
for my $c (split //, $string) { ... } [download]
duff