]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/WwwHighlight.pm
get rid of unnecessary bytes::length usage
[public-inbox.git] / lib / PublicInbox / WwwHighlight.pm
index 6fed2fedd1edac589046a29c62160d3b69637021..3593c2d49e3f6342e52c31fd8eee46214e2c0477 100644 (file)
@@ -20,8 +20,7 @@
 
 package PublicInbox::WwwHighlight;
 use strict;
-use warnings;
-use bytes (); # only for bytes::length
+use v5.10.1;
 use parent qw(PublicInbox::HlMod);
 use PublicInbox::Linkify qw();
 use PublicInbox::Hval qw(ascii_html);
@@ -69,7 +68,7 @@ sub call {
        $l->linkify_2($$bref);
 
        my $h = [ 'Content-Type', 'text/html; charset=UTF-8' ];
-       push @$h, 'Content-Length', bytes::length($$bref);
+       push @$h, 'Content-Length', length($$bref);
 
        [ 200, $h, [ $$bref ] ]
 }