gbarr / perl-Convert-ASN1

encode/decode data using ASN.1 description
http://search.cpan.org/dist/Convert-ASN1/
13 stars 21 forks source link

Doc clarification needed #28

Open tlhackque opened 8 years ago

tlhackque commented 8 years ago

The "Exceptions" paragraph describing the ASN.1 syntax that's accepted by Convert::ASN1 reads:

There are some exceptions where Convert::ASN1 does not require an element to be named. These are SEQUENCE {...}, SET {...} and CHOICE. In each case if the element is not given a name then the elements inside the {...} will share the same namespace as the elements outside of the {...}.

I couldn't figure out what this means, nor could I find an example or a test in the distribution that matches this description.

And I couldn't create one, though I got a lot of syntax errors trying.

An example of omitting names and the resulting Perl would be appreciated.

As would a testcase. (And if perchance this is broken...perhaps a different change :-)

Thanks!