| Next: Completing the module Previous: Using foreign definitions Contents: Contents |
Tag definitions can be grouped by setting up a global hash named %sets.
%sets=(
pointto => [qw(EMPHASIZE COLORIZE)],
); |
When using the definition module, this allows to activate the tags \EMPHASIZE and \COLORIZE together:
# declare all the tags to recognize use PerlPoint::Tags::New qw(:pointto); |
The syntax is obviously borrowed from Perls usual import mechanism.
Tag sets can overlap:
%sets=(
pointto => [qw(EMPHASIZE COLORIZE)],
set2 => [qw(COLORIZE FONTIFY)],
); |
And of course they can be nested:
%sets=(
pointto => [qw(EMPHASIZE COLORIZE)],
all => [(':pointto', qw(FONTIFY))],
); |
| Next: Completing the module Previous: Using foreign definitions Contents: Contents |