http://www.perlmonks.org?node_id=873074


in reply to Efficient walk/iterate along a string

I haven't Benchmarked against anything, but unpack might be faster for splitting to an array:

>perl -wMstrict -le "my $str = 'abcde'; my @chrs = unpack '(a)*', $str; print qq{'$_'} for @chrs; " 'a' 'b' 'c' 'd' 'e'