++ed by:
MIKEGRB YKO OLEG NNUTTER UNDEF

100 PAUSE users
209 non-PAUSE users.

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.