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.
In reply to Re^4: How to access each char in a string most quickly?
by ikegami
in thread How to access each char in a string most quickly?
by llancet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |