You're right. :)
This really should be a job for tr///, shouldn't it?
my $string = '5mb of stuff'; my $count = $string =~ tr/\0/\0/;
(I probably just missed seeing that proposed somewhere within the thread.)
Update: Ah, I see it's the first thing you proposed (good job). This is probably a good time for me to walk away from the keyboard for awhile. ;)
Dave
In reply to Re^5: Out of Memory
by davido
in thread Out of Memory
by Michael Kittrell
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |