Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: '%hash = ()' is slower than 'undef %hash'

by haj (Hermit)
on May 18, 2018 at 12:34 UTC ( #1214842=note: print w/replies, xml ) Need Help??


in reply to Re^2: '%hash = ()' is slower than 'undef %hash'
in thread '%hash = ()' is slower than 'undef %hash'

The effect on the hash is indistinguishable, as far as I can say. But the two expressions have different values: %hash = () returns an empty hash, whereas undef %hash returns undef. This isn't a big deal, but in my opinion big enough to keep the two distinct.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2019-04-21 04:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I am most likely to install a new module from CPAN if:
















    Results (110 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!