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 "} +"
In reply to Re^2: Addition of hashes
by morgon
in thread Addition of hashes
by the_dark_lord
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |