in reply to Byte length

use the bytes pragma..
$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
    Thanks! I didn't know about the bytes pragma :(

    ++ vs lbh qrpbqrq guvf hfvat n ge va Crey :)
    Nabgure bar vs lbh qvq fb jvgubhg ernqvat n znahny svefg.
    -- vs lbh hfrq OFQ pnrfne ;)
        - Whreq