There is an ongoing outage on the primary CPAN mirror. It is possible to work around the issue by using MetaCPAN as a mirror.

NAME

VS::RuleEngine::Rule::Perl - Use a code reference as an rule

INTERFACE

CLASS METHODS

new ( CODE )

Creates a new instance. The argument CODE must be a reference to a subroutine - either anoynmous or named.

INSTANCE METHODS

evaluate

Forwards the call to the wrapped subroutine.