use Test::More *; is(typeof(b'hoge'), 'Bytes'); is(b'hoge'.length(), 4); done_testing();