note
dragonchild
Personally, I tend to keep thingsl ike synonyms in a data structure of their own. So, I might do something like:
<code>
my %options = (
verbose => 0,
everything => 1,
);
my %synonyms = (
verbose => [ qw(
talkative
)],
everything => [ qw(
all
)],
);
GetOptions(
\%options,
(
map { join\('|', $_, @{ $synonyms{$_} || []}) } keys %options
),
);
</code>
This way you can, at a glance, see exactly what your synonyms are, laid out nice as can be. A similar thing can be done with the "=i", "=s", etc.
<p>------<br><i>We are the carpenters and bricklayers of the Information Age.</i><p>Don't go borrowing trouble. For programmers, this means <i>Worry only about what you need to implement.</i><p>Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
241367
241429