- or download this
my $effect = Effect->new;
$effect->set( salary => 1.02, '*' ); # A 2% raise
$employee->apply_effect( $effect );
- or download this
sub AUTOLOAD {
# do nothing
}
- or download this
$employee->salary( $employee->salary * 1.02 );
- or download this
$employee->salary( $employee->salary * 1.02 );
# we don't mind if they don't have a frobnitz
eval { $employee->frobnitz( $employee->frobnitz + 1.5 ) };