|Don't ask to ask, just ask|
what's faster than .=by xafwodahs (Scribe)
|on Mar 08, 2003 at 04:04 UTC||Need Help??|
xafwodahs has asked for the
wisdom of the Perl Monks concerning the following question:
I have code that 'collects' data 1 byte at a time. I append that byte to a scalar.
This can run for a couple hundred thousand bytes, and it occurred to me that ".=" might actually be very inefficient depending on how it works.
1) Does .= result in lots of data copying as I suspect?
2) What is the most efficient way to append a byte to the end of a scalar?
Thanks for the help.