makes a valid point (I'm cutting too many corners lately) but your response appears much closer. Yes it is a Sybase database. I'm using fetchrow_arrayref for performance reasons (I'm processing half a million records, about 350Mb of data). I've still got the problem. I want to change the data in the array reference to get rid of warnings but don't want the performance hit of creating another array. Doh!