Here is is with hash value error corrected and obvious use of @_.
sub new{ my $class = shift; # changed to take class off @_ my $self = $class->SUPER::new('1.0','UTF8'); # my $root; #unused my @listeners = @_; # assuming that's what you want $self->{'Listeners'} = [@listeners]; # hash value must be scalar bless($self, $class); }
After Compline,
Zaxo
In reply to Re: Anonymous Scalar Ref to Hash?
by Zaxo
in thread Anonymous Scalar Ref to Hash?
by acalbazana
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |