acalbazana has asked for the wisdom of the Perl Monks concerning the following question:
Is there any way I could turn this anonymous scalar reference into a hash reference? My constructor follows:
sub new{ my ($class) = @_; my $self = $class->SUPER::new('1.0','UTF8'); my $root; my @listeners; # fails! $self->{'Listeners'} = @listeners; bless($self, $class); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Anonymous Scalar Ref to Hash?
by Zaxo (Archbishop) on Sep 05, 2002 at 01:26 UTC | |
by bart (Canon) on Sep 05, 2002 at 07:27 UTC | |
|
Re: Anonymous Scalar Ref to Hash?
by blokhead (Monsignor) on Sep 05, 2002 at 01:21 UTC | |
|
Re: Anonymous Scalar Ref to Hash?
by dpuu (Chaplain) on Sep 05, 2002 at 01:14 UTC | |
|
Re: Anonymous Scalar Ref to Hash?
by adrianh (Chancellor) on Sep 05, 2002 at 10:43 UTC |