in reply to Can anyone make this shorter?

If I understand the question right...
perl -pi.bak -e 's/(xyz\s*=\s*)(\d*)/$1.($2+1)/e' test.data
Update: bah, I should type faster :)