div => '/',
mod => '%',
);
+
foreach my $method (keys %ops)
{
my $s = $ops{$method};
=head1 PROVIDED METHODS
-It is important to note that all those methods do in place modification of the
-value stored in the attribute. All methods but 'set' are plain mathematical
-operators, as in $current_value = $current_value I<op>$argument, where I<op> is
-the operator listed next to the method name.
+All methods but 'set' are plain mathematical operators, as in
+C<$current_value = $current_value OP $argument>
+where OP is the operator listed next to the method name.
=over 4
-=item B<add>: +
+=item B<add> +
-=item B<sub>: -
+=item B<sub> -
-=item B<mul>: *
+=item B<mul> *
-=item B<div>: /
+=item B<div> /
-=item B<mod>: %
+=item B<mod> %
-=item B<abs>: |$val|, or $val = abs($value).
+=item B<abs> |$val|, or $val = abs($value).
-=item B<set>:
+=item B<set>
A way to set the value instead of 'setter' or 'is => "rw"'. This method is
provided for convenience.