| Search-GIN documentation | Contained in the Search-GIN distribution. |
Search::GIN::Driver::Pack::Length - use Moose::Role;
version 0.08
use Search::GIN::Driver::PackLength;
Yuval Kogman <nothingmuch@cpan.org>
This software is copyright (c) 2010 by Yuval Kogman, Infinity Interactive.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
| Search-GIN documentation | Contained in the Search-GIN distribution. |
use strict; use warnings; package Search::GIN::Driver::Pack::Length; BEGIN { $Search::GIN::Driver::Pack::Length::VERSION = '0.08'; } # ABSTRACT: use Moose::Role; use namespace::clean -except => [qw(meta)]; sub pack_length { my ( $self, @strings ) = @_; pack("(n/a*)*", @strings); } sub unpack_length { my ( $self, $string ) = @_; unpack("(n/a*)*", $string); } 1;
__END__