in reply to Dereferencing fetchall_arrayref({})
DBI::fetchall_arrayref returns an array of arrays. You need two indexes to dereference a data element. Let your code read,
Note that ucase is spelled uc, and does not modify its argument in-place.if ( $data->[0][1] eq "large" ) { #something like this or... $data->[0][1] = uc ( $data->[0][1] ); }
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Dereferencing fetchall_arrayref({})
by bradcathey (Prior) on Apr 25, 2004 at 20:49 UTC | |
by Zaxo (Archbishop) on Apr 25, 2004 at 20:55 UTC | |
by b10m (Vicar) on Apr 25, 2004 at 20:59 UTC | |
by davido (Cardinal) on Apr 25, 2004 at 21:21 UTC | |
by b10m (Vicar) on Apr 25, 2004 at 22:09 UTC |