[prog] perl interfaces
jarich at perltraining.com.au
Thu Apr 15 09:12:05 EST 2004
> Has anyone had any experience of implementing interfaces or abstract
> classes in perl? I want to be able to define an interface and to get an
> error at compile time if implementations of that interface fail to define
> any of the required methods. Is there any recommended way of doing this?
> Googling turned up the interface.pm module, but it looks pretty new - has
> anyone used it? Any pitfalls I should know about? Any other solutions I
> ought to take a look at?
How about Class::Contract? or Class::Virtually::Abstract?
The interface.pm isn't that new, but might not be that useful. Compare it
to Class::Contract. Also consider dropping Scott a note asking him where
he is with the module.
All the best,
("`-''-/").___..--''"`-._ | Jacinta Richardson |
`6_ 6 ) `-. ( ).`-.__.`) | Perl Training Australia |
(_Y_.)' ._ ) `._ `. ``-..-' | +613 9354 6001 |
_..`--'_..-_/ /--'_.' ,' | contact at perltraining.com.au |
(il),-'' (li),' ((!.-' | www.perltraining.com.au |
More information about the Programming