in reply to problem using new perl version

Hello supernono06 and welcome to the monastery and to the wonderful world of Perl!

You can also profit the read of the main documentation for defined especially:

Use of defined on aggregates (hashes and arrays) is no longer supporte +d. It used to report whether memory for that aggregate had ever been +allocated. You should instead use a simple test for size: if (@an_array) { print "has array elements\n" } if (%a_hash) { print "has hash members\n" }

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.