++ed by:
CHENGANG PWBENNETT JRMASH RSCHABER KARUPA

133 PAUSE users
110 non-PAUSE users.

Malcolm Beattie

NAME

fields - compile-time class fields

SYNOPSIS

    {
        package Foo;
        use fields qw(foo bar baz);
    }
    ...
    my Foo $var = new Foo;
    $var->{foo} = 42;

    # This will generate a compile-time error.
    $var->{zap} = 42;

DESCRIPTION

The fields pragma enables compile-time verified class fields.