in reply to Data::Dumper scalar refs undef

When dumping self-referential structures, you need to enable $Data::Dumper::Purity = 1;

See the pod for the explaination.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
If I understand your problem, I can solve it! Of course, the same can be said for you.

Replies are listed 'Best First'.
Re: Re: Data::Dumper scalar refs undef
by bsb (Priest) on Sep 23, 2003 at 10:19 UTC
    Both examples do that.

    I originally thought that was it. Switching it off in the second example breaks the second (successful) bit as expected.

      {blush} D'oh!