in reply to Re: Addition of hashes
in thread Addition of hashes
The value of a hashref depends on the context - and not only scalar vs list, but it's different between numeric and string context, e.g.
perl -e 'print {}' # string-context HASH(0x114dcb8) perl -e 'print 0 + {}' # numeric context 18996408 perl -e '{} + 0' # does not compile syntax error at -e line 1, near "} +"
|
|---|