Dr.Ruud wrote: > A byte count can be very useful, > for example if you need to stay > within MySQL's max_allowed_packet > when creating big SQL statements. For that purpose, what you need to know is the number of bytes that you'll be sending to MySQL. This depends on the characters and how you're encoding them for communication with MySQL, *not* on how Perl is representing them internally. See previous messages about writing UTF-8-encoded text to a file. -zeframThread Previous | Thread Next