Closed p5pRT closed 20 years ago
Fields manpage: http://www.rge.com/CPAN/doc/manual/html/lib/fields.html The fields manpage has incorrect code at the bottom of the DESCRIPTION section. Here is the code:
sub new { my $class = shift; no strict 'refs'; my $self = bless [\%{"$class\::FIELDS"]\, $class; # INCORRECT LINE $self; }
It's got an opening "{"\, but it's got no closing "}". I have tested this example under perl 5.005 and\, as expected\, it only works if you put in the closing "}". This is what the code should say:
sub new { my $class = shift; no strict 'refs'; my $self = bless [\%{"$class\::FIELDS"}]\, $class; # CORRECT LINE $self; }
- David James beta@home.com
Migrated from rt.perl.org#964 (status was 'resolved')
Searchable as RT964$