Lets your class/object say it works like something else
http://search.cpan.org/dist/asa
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".
- Developed at devel:languages:perl
- Sources inherited from project openSUSE:Factory
-
3
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Leap:16.0:FactoryCandidates/perl-asa && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
asa-1.04.tar.gz | 0000027573 26.9 KB | |
cpanspec.yml | 0000000669 669 Bytes | |
perl-asa.changes | 0000001213 1.18 KB | |
perl-asa.spec | 0000003570 3.49 KB |
Comments 0