Thanks,
Corion, you are right, there is not any reason to use the weird syntax. I found it two years ago in the book <a href=;http://www.manning.com/Conway/index.html'>Object Oriented Perl by Damian Conway (in my opinion, that book is one of the best Perl books). Probably, that syntax became old. Unfortunately, using
my $self = fields::new($class);
intead of
no strict "refs";
my $self = bless [\%{"${caller}::FIELDS"}], $class;
doen't resolve problem with pseudo-hashes.
---
Michael Stepanov aka nite_man
It's only my opinion and it doesn't have pretensions of absoluteness!