in reply to using push
I'd suggest beginning your debugging by adding:
use warnings; use strict; [download]
to your code. After that, give us some more context to work with. On a side note, I've never seen that error message before.