getrule()
hashref getrule ()
- Returns the current rule in the current scope
Example 1
ontoken('T_ACTION_ACCEPT', sub {
# the accept token
my $token = shift;
# the position of the token in the rule
my $tpos = shift;
$rule = getrule();
});