mbarbon / google-protobuf-dynamic

Fast and complete Perl protobuf implementation using uPB and Google .proto parser
35 stars 18 forks source link

pod does not agree with error message #24

Closed martinthurn closed 5 years ago

martinthurn commented 5 years ago

The pod documentation says to call load_string($string) but I get error message showing three arguments. What are the arguments?

Usage: Google::ProtocolBuffers::Dynamic::load_string(THIS, file, sv) at bin/proto-to-module.pl line 14.

Here is my program:

use Google::ProtocolBuffers::Dynamic; my $s = q/ message Person { required string name = 1; } /; my $dynamic = Google::ProtocolBuffers::Dynamic->new; $dynamic->load_string($s);