++ed by:
MENDEL NGLENN DCPETROV GENEHACK KEEDI

133 PAUSE user(s)
110 non-PAUSE user(s).

Gurusamy Sarathy

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.