in reply to Re^13: Determining content-length for an HTTP Post
in thread Determining content-length for an HTTP Post

This is only true if you output utf8 and your Perl is built to use utf8 as its internal Unicode representation. If any of the two changes, { use bytes; length } will not give the correct results anymore.