defined(@array) is deprecated at ... (Maybe you should just omit the defined()?) 0 1 Use of uninitialized value in addition (+) at ... 1