note
cdarke
The first <code>bless \my $anon, $class;</code> retains the name $anon for the rest of the code block - it is no longer anonymous.<br><br>The second <code>bless {}, $class;</code> constructs an anonymous hash, which I believe uses more memory. I cannot claim I invented the use of the <code>do{ }</code> construct in this way, I stole it from [TheDamian].
871823
872084