develooper Front page | perl.perl5.porters | Postings from January 2010

Re: warding against bytes.pm

Thread Previous | Thread Next
From:
Zefram
Date:
January 5, 2010 10:12
Subject:
Re: warding against bytes.pm
Message ID:
20100105181209.GG27216@fysh.org
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.

-zefram

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About