in reply to Hash problem

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:
print scalar %newHash;
This also produces "2/8".

Also try this:

print "foo " . %newHash;
This produces:
foo 2/8

I'll admit that I do not understand the significance of the "2/8".

Replies are listed 'Best First'.
Re^2: Hash problem
by megaurav2002 (Monk) on Nov 08, 2007 at 03:21 UTC