in reply to Another use bytes and length issue

Remember that use bytes will affect most string manipulations too, and will likely mess up the utf8 encoding flag for any strings touched in its scope.

You could introduce another scope just for the length call, but personally, I much prefer to do my $bytes = bytes::length($string);.