in reply to Re^4: Whats its bad here?
in thread Whats its bad here?

if i disable use strict it works
But, that is the wrong thing to do. You should use strict, then fix the errors. Read use strict and warnings.