Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

Commit

Permalink
perl 5.8 does not support '>' modifier for unpack
Browse files Browse the repository at this point in the history
  • Loading branch information
plicease committed Apr 8, 2014
1 parent 6d0c387 commit df462e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Protocol/WebSocket/Frame.pm
Expand Up @@ -163,7 +163,7 @@ sub next_bytes {
$bits =~ s{^.}{0};

# Can we handle 64bit numbers?
if ($Config{ivsize} <= 4 || $Config{longsize} < 8) {
if ($Config{ivsize} <= 4 || $Config{longsize} < 8 || $] < 5.010) {
$bits = substr($bits, 32);
$payload_len = unpack 'N', pack 'B*', $bits;
}
Expand Down

0 comments on commit df462e7

Please sign in to comment.