in reply to Re: Re: Dereferencing fetchall_arrayref({})
in thread Dereferencing fetchall_arrayref({})

What about something like this?

my $data; while ($_ = $sth->fetchall_arrayref()) { uc(${$_}{'title'}) if(${$_}{'title'} eq "large"); push @{$data}, $_; }
--
b10m

All code is usually tested, but rarely trusted.

Replies are listed 'Best First'.
Re: Re: Dereferencing fetchall_arrayref({})
by davido (Cardinal) on Apr 25, 2004 at 21:21 UTC
    You fell into the old uc trap. uc returns a value, it doesn't modify in place.


    Dave

      Ok, this then?

      ${$_}{'title'} = uc(${$_}{'title'}) if(${$_}{'title'} eq "large");
      --
      b10m

      All code is usually tested, but rarely trusted.