in reply to Re: truncate string to byte count
in thread truncate string to byte count
It is not an XY-Problem.
It's the actual problem at hand.
The backgound is a program that implements a (passive) check for a monitoring system where you need to write your message to a pipe but the monitoring system imposes a byte-limit on the message.
In Section
Seekers of Perl Wisdom