| 1 | package Hessian::Serializer::Binary; | ||
| 2 | |||
| 3 | 33 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 0 | ▶ | sub write_binary { #{{{ |
|
Subroutine
write_binary: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6 | 0 | my ($self, @chunks) = @_; | |
| 7 | 0 | my $last_chunk = pop @chunks; | |
| 8 | my @message = map { | ||
| 9 | 0 | 'b' . ( pack 'n/a*', $_ ); | |
| 10 | } | ||
| 11 | @chunks[ 0 .. ( $#chunks ) ]; | ||
| 12 | 0 | push @message, 'B' . ( pack 'n/a*', $last_chunk); | |
| 13 | |||
| 14 | 0 | my $result = join "" => @message; | |
| 15 | 0 | return $result; | |
| 16 | } | ||
| 17 | |||
| 18 | |||
| 19 | 33 | "one, but we're not the same"; | |
| 20 | |||
| 21 | __END__ | ||