Sophie

Sophie

distrib > PLD > th > ppc > by-pkgid > 9fb66a94142bed6c0d8e1a8dcee00f49

perl-asa-1.04-1.noarch.rpm

Description:

Perl 5 doesn't natively support Java-style interfaces, and it doesn't
support Perl 6 style roles either.

You can get both of these things in half a dozen different ways via
various CPAN modules, but they usually require that you buy into
"their way" of implementing your code.

Other have turned to "duck typing".

This is, for the most part, a fairly naive check that says "can you do
this method", under the "if it looks like a duck, and quacks like a
duck, then it must be a duck".

It assumes that if you have a ->quack method, then they will treat you
as a duck, because doing things like adding Duck to your @ISA array
means you are also forced to take their implementation.

Sources packages:

Other version of this rpm: