carwynmoore / perl-nats

A Perl client for the NATS messaging system
MIT License
12 stars 6 forks source link

compile-time error in v0.2.1 #6

Closed dwburke closed 5 years ago

dwburke commented 5 years ago

Global symbol "$SSL_ERROR" requires explicit package name (did you forget to declare "my $SSL_ERROR"?) at /home/dburke/.plenv/versions/5.22.2/lib/perl5/site_perl/5.22.2/Net/NATS/Connection.pm line 45.

I have tested on perl versions 5.28.1 and 5.22.2 IO::Socket::SSL is updated to latest version as well

reproduce:

perl -MNet::NATS::Client
rdapgar commented 5 years ago

Maybe you can fix the problem by change the variable $SSL_ERROR to $IO::Socket::SSL::SSL_ERROR Alternatively insert the line "use IO::Socket::SSL;" after "use strict;" at the beginning of Connection.pm.

carwynmoore commented 5 years ago

Thanks for raising the issue! I've merged in the pull request fix 👍

dshadow commented 5 years ago

Hi! Could you please upload new version to CPAN ? Thanks!

carwynmoore commented 5 years ago

Hi! Could you please upload new version to CPAN ? Thanks!

I've uploaded v0.2.2 to CPAN, ta for the reminder! 🙂