Re: problem running Convert::ASN1 on Windows XP
- From: "A. Sinan Unur" <1usa@xxxxxxxxxxxxxxxxxxx>
- Date: Sun, 24 May 2009 16:00:58 GMT
yawnmoth <terra1024@xxxxxxxxx> wrote in news:195c59a6-1be1-4a7d-b064-d60371b89f74@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:
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.
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
--
A. Sinan Unur <1usa@xxxxxxxxxxxxxxxxxxx>
(remove .invalid and reverse each component for email address)
comp.lang.perl.misc guidelines on the WWW:
http://www.rehabitation.com/clpmisc/
.
- References:
- problem running Convert::ASN1 on Windows XP
- From: yawnmoth
- problem running Convert::ASN1 on Windows XP
- Prev by Date: Re: problem running Convert::ASN1 on Windows XP
- Next by Date: Re: Here document
- Previous by thread: Re: problem running Convert::ASN1 on Windows XP
- Next by thread: Re: problem running Convert::ASN1 on Windows XP
- Index(es):