Use a do block to limit the scope:
$s = "\x{100}";; print do{ use bytes; length $s } . ' : ' . length $s;; 2 : 1
In reply to Re^3: Another use bytes and length issue
by BrowserUk
in thread Another use bytes and length issue
by zubster
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |