$x=chr(536); print "Char length: ".length($x)."\n"; print "Bytes length: ".bytes_length($x)."\n"; sub bytes_length($){ use bytes; length $_[0]; }
In reply to Re: Byte length
by Ido
in thread Byte length
by Juerd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |