I'm curious: is there a way to get the number of bytes per character for the encoding in use? If so, I imagine you could do:
my $len = length($scalar) * $current_encoding_byte_per_char;Is that plausible?
In reply to Re: Re: Re: Size of scalar in bytes
by Itatsumaki
in thread Size of scalar in bytes
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |