Skip Menu |

This queue is for tickets about the Net-OpenVPN-Agent CPAN distribution.

Report information
The Basics
Id: 107692
Status: open
Priority: 0/
Queue: Net-OpenVPN-Agent

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.01
Fixed in: (no value)



Subject: Experimental keys on scalar is now forbidden
Compilation of the module fails with perl 5.23.x: # Failed test 'use Net::OpenVPN::Agent;' # at t/00-load.t line 4. # Tried to use 'Net::OpenVPN::Agent'. # Error: Experimental keys on scalar is now forbidden at /tmpfs/.cpan-build/2015101018/Net-OpenVPN-Agent-0.01-ma_EPO/blib/lib/Net/OpenVPN/Agent.pm line 207. # Compilation failed in require at t/00-load.t line 4. # BEGIN failed--compilation aborted at t/00-load.t line 4. # Testing Net::OpenVPN::Agent , Perl 5.023003, /opt/perl-5.23.3/bin/perl5.23.3 # Looks like you failed 1 test of 1.
On Sat Oct 10 15:49:04 2015, SREZIC wrote: Show quoted text
> Compilation of the module fails with perl 5.23.x: > > # Failed test 'use Net::OpenVPN::Agent;' > # at t/00-load.t line 4. > # Tried to use 'Net::OpenVPN::Agent'. > # Error: Experimental keys on scalar is now forbidden at > /tmpfs/.cpan-build/2015101018/Net-OpenVPN-Agent-0.01- > ma_EPO/blib/lib/Net/OpenVPN/Agent.pm line 207. > # Compilation failed in require at t/00-load.t line 4. > # BEGIN failed--compilation aborted at t/00-load.t line 4. > # Testing Net::OpenVPN::Agent , Perl 5.023003, /opt/perl- > 5.23.3/bin/perl5.23.3 > # Looks like you failed 1 test of 1.
It is a trivial fix: sub _makeAgent { my $self = shift; my $jar = HTTP::CookieJar->new; if (exists $self->{COOKIES}) { foreach my $url (keys %{$self->{COOKIES}}) { <===== just put %{} around the expression foreach (@{$self->{COOKIES}->{$url}}) { $jar->add($url, $_); } } } Martin -- Martin J. Evans Wetherby, UK