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
In reply to Re: Dereferencing fetchall_arrayref({})
by Zaxo
in thread Dereferencing fetchall_arrayref({})
by bradcathey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |