My first "A-ha!" moment of the morning - I have some old code I maintain that does exactly that
my Dog $spot; thing, and has pseudo-hashes - now I know the reason ! - I always thought it was because the original author of the code was a Java programmer feeling homesick...
...reality must take precedence over public relations, for nature cannot be fooled. - R P Feynmann