I am trying to use the XML-BMEcat Module and I presume that there is a problem with something outdated but I am absolutely stuck. There are some subroutines with similar problems, e.g.:
sub creatCatalogGroup { my ($self, $key) = @_; # pls.don't forget this problem (exists $self->{$key}) ? return $self->{$key} : return Push2PsH($self, $key, CatalogGroup->new()); }
Calling it with:
my $CatalogGroup = $GroupSystem->creatCatalogGroup('02');
Throws an error and the script stops:
Not a HASH reference at /cpan/XML/BMEcat.pm line 637.
which is (exists $self->{$key}) ? return $self->{$key} :
Data::Dumper gives me$VAR1 = bless( {} , 'GroupSystem' ); $VAR2 = '02';for @_
Now I cannot stop thinking that it must be about exists defined but that seems not logical to me. I tried it on perl 5.10.1 and 5.20.2 which are the versions I have available on webservers.
As far as I read everywhere exists is not deprecated but defined is that makes me think I am on the wrong track thinking about this part of the subroutine.
I would appreciate any hint into the right direction.
Cheers Niko
In reply to Error with CPAN module XML-BMEcat by derion
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |