use bytes

[email protected]
Newsgroups perl.unicode
Message-ID <[email protected]>
I'm confused, can someone tell me why:

    #!/usr/bin/perl

    use bytes;
    $x = chr( 400 );
    print "Length is ", length( $x ), "\n";

prints 1, while

    #!/usr/bin/perl

    $x = chr( 400 );
    use bytes;
    print "Length is ", length( $x ), "\n";

prints 2?

% perl -v 

This is perl, v5.8.2 built for i686-linux

//Ed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.