laziness, impatience, and hubris | |
PerlMonks |
Re: simply appending to a scalar...by Hue-Bond (Priest) |
on Jun 25, 2006 at 13:40 UTC ( [id://557430]=note: print w/replies, xml ) | Need Help?? |
Off the top of my head:
Update: Erm, had to put the 1e5 inside each sub to reduce the overhead of the my declaration. Update2: After playing with it for a while, I find interesting what happens when $append has a size that is a power of 2. Size of $c doesn't matter:
Size of $c doesn't matter. So if you are working with 8 Kb chunks, you better use $data = $data . $more. --
In Section
Seekers of Perl Wisdom
|
|