Anonymous scalars

2008-12-10 Thread Christoph Kiefer
Dear all What is the precise difference between the two ways of generating an inside-out-object? 1/ my $node = bless \do { my $anonymous }, ref($class) || $class; 2/ my $a; my $node = bless \$a, ref($class) || $class; In other words, why is it suggested in most books, web to have an /anonymous

Anonymous scalars

2008-12-10 Thread Christoph . Kiefer
Dear all What is the precise difference between the two ways of generating an inside-out-object? 1/ my $node = bless \do { my $anonymous }, ref($class) || $class; 2/ my $a; my $node = bless \$a, ref($class) || $class; In other words, why is it suggested in most books, web to have an /anonymo