Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: problem using new perl version -- defined hash

by Discipulus (Canon)
on Nov 08, 2018 at 16:13 UTC ( [id://1225434]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1225434]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-03-29 12:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found