in reply to Byte length
$x=chr(536); print "Char length: ".length($x)."\n"; print "Bytes length: ".bytes_length($x)."\n"; sub bytes_length($){ use bytes; length $_[0]; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Byte length
by Juerd (Abbot) on Mar 04, 2002 at 19:58 UTC |