- or download this
package Encoder;
...
$self->common_stuff($text);
$self->other_stuff($text);
}
- or download this
# In Encoder/B.pm
package Encoder::B;
...
my $new_text = $text;
$new_text =~ s/a/c/g;
}
- or download this
use Encoder::B;
use Encoder::Whatever;
...
return $Encoder_Table{$e}->new();
}
- or download this
my $encoder = encoder_factory($whatever_e_is);
print $encoder->encode("Hahahaha!");