in reply to Re: Re: Re: Re: Sad newbie question about Data::Dumper and array references..
in thread Sad newbie question about Data::Dumper and array references..

hmmmm, which means I should have written-

${$data}[0]

:-)

--
my $chainsaw = 'Perl';

  • Comment on Re: Re: Re: Re: Re: Sad newbie question about Data::Dumper and array references..
  • Download Code

Replies are listed 'Best First'.
Re (tilly) 6: Sad newbie question about Data::Dumper and array references..
by tilly (Archbishop) on Mar 23, 2001 at 17:54 UTC
    $$data[0]
    would suffice. However while style may be the only reason to prefer one over the other, in this case style aids comprehension. I far prefer seeing:
    $data->[0]
    all day.