in reply to Need Convert::ASN1 library encoded text in uper format

Hello santosh_vjit,

I am afraid what you ask is not possible. From the module documentation Convert::ASN1/DESCRIPTION:

Convert::ASN1 encodes and decodes ASN.1 data structures using BER/DER +rules.

In conclusion only allowed encoding(s) from the module are: Basic Encoding Rules (BER) and Distinguished Encoding Rules (DER). The remaining encoding(s) e.g. Packed Encoding Rules, aligned (PER) and unaligned (UPER), and XML Encoding Rules (XER), basic and canonical are not supported from the module.

Hope this helps, BR.

Seeking for Perl wisdom...on the process of learning...not there...yet!

Replies are listed 'Best First'.
Re^2: Need Convert::ASN1 library encoded text in uper format
by santosh_vjit (Novice) on Feb 22, 2018 at 12:36 UTC
    Thanks BR for your reply.

    Yes from documentation i could figure out that only BER/DER encoding is possible. But I wanted to know if there is any other way where i can encode the structure in UPER encoding rule.

      Hello again santosh_vjit,

      I guess the only alternative way is to implemented yourself and extend the module. :)

      BR / Thanos

      Seeking for Perl wisdom...on the process of learning...not there...yet!