It seems to have more to do with the concatenation operator than the newline character. The . preceding the hash seems to force the hash into a scalar context. For example, try this:
This also produces "2/8".print scalar %newHash;
Also try this:
This produces:print "foo " . %newHash;
foo 2/8
I'll admit that I do not understand the significance of the "2/8".
In reply to Re: Hash problem
by toolic
in thread Hash problem
by megaurav2002
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |