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:
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".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Hash problem
by megaurav2002 (Monk) on Nov 08, 2007 at 03:21 UTC |