my $class = shift;
my $self = {'_DEBUG' => 0,
'_OUT' => sub {printf(@_)},
- '_CONNECTORS' => sub { return ({ -name => 'direct',
- -schemas => {} }) },
+ '_CONNECTORS' => sub { return ({ 'name' => 'direct',
+ 'schemas' => {} }) },
'_CONNECTOR' => undef,
};
delete($ENV{'HTTPS_PROXY'});
if (defined($self->{'_CONNECTOR'})) {
- my $schemas = $self->{'_CONNECTOR'}->{-schemas};
+ my $schemas = $self->{'_CONNECTOR'}->{'schemas'};
foreach (keys(%{$schemas})) {
$self->debug("Adding schema %s with proxy %s", $_, $schemas->{$_});
if ($_ eq 'https') {
if ($url =~ m|$pattern|) {
$self->debug("Match");
foreach ($self->connectors()) {
- $self->debug("Using connector %s", $_->{-name});
+ $self->debug("Using connector %s", $_->{'name'});
$self->selectconn($_);
$res = $self->_parse($url, $pattern);
if (defined($res)) {