Fixes for new perl releases

fixed errors like:
`defined(@array) is deprecated at`

now source compiles and works with Debian GNU/Linux SID 2014-11, perl 5.20.1-2