in reply to Re^3: How to access each char in a string most quickly?
in thread How to access each char in a string most quickly?
Neither stand up too well unless I've screwed something
I didn't know how they'd compare.
Very tired right now, but I think while ( my $c = $string =~ /(.)/sg) is wrong. $c will be 1 in the loop. Need to use $1.
|
|---|