in reply to Data::Dumper scalar refs undef

Change
$b = \$a->{type};
to:
$b = $a->{type};


Sorry, misread the question.

Replies are listed 'Best First'.
Re: Re: Data::Dumper scalar refs undef
by bsb (Priest) on Sep 23, 2003 at 08:53 UTC
    But then $b will just be a copy of $a->{type}, not a scalar reference to it.

    I use a reference so that if I change $b (or $$b), that also changes $a->{type}

    In the original context it may make more sense.
    Or it may not.
    I'm still in the midst of things there

    Missed the strike-out by half a second...