|
Posted by A. Sinan Unur on May 24, 2009, 12:00 pm
Please log in for more thread options
show/hide quoted text
> I installed ActivePerl on Windows and placed the contents of the lib
> directory in <http://search.cpan.org/~gbarr/Convert-ASN1-0.22/lib/
> Convert/ASN1.pod> into a local folder. I then created a file -
> test.pl - whose contents are identical to those at <http://
> search.cpan.org/~gbarr/Convert-ASN1-0.22/lib/Convert/
> ASN1.pod#SYNOPSYS> and... I get the following error when I try to run
> "perl test.pl":
>
> 7 string
The first part (up to the second use line) is a stand alone script
and this output shows that it ran.
show/hide quoted text
> Can't use an undefined value as a symbol reference at Convert/ASN1/
> IO.pm line 73.
The second part of the synopsis:
use Convert::ASN1 qw(:io);
$peer = asn_recv($sock,$buffer,0);
$nbytes = asn_read($fh, $buffer);
$nbytes = asn_send($sock, $buffer, $peer);
$nbytes = asn_send($sock, $buffer);
$nbytes = asn_write($fh, $buffer);
$buffer = asn_get($fh);
$yes = asn_ready($fh)
is not a standalone script. These are just examples of functions
exported when the :io export group is requested.
See
http://search.cpan.org/~gbarr/Convert-ASN1-0.22/lib/Convert/ASN1.pod#IO_Functions
See http://cpansearch.perl.org/src/GBARR/Convert-ASN1-0.22/examples/ for examples.
Sinan
--
(remove .invalid and reverse each component for email address)
comp.lang.perl.misc guidelines on the WWW:
http://www.rehabitation.com/clpmisc/
|
> directory in <http://search.cpan.org/~gbarr/Convert-ASN1-0.22/lib/
> Convert/ASN1.pod> into a local folder. I then created a file -
> test.pl - whose contents are identical to those at <http://
> search.cpan.org/~gbarr/Convert-ASN1-0.22/lib/Convert/
> ASN1.pod#SYNOPSYS> and... I get the following error when I try to run
> "perl test.pl":
>
> 7 string