[Pdx-pm] how to specify an interface in a .pm file

Randal L. Schwartz merlyn at stonehenge.com
Mon Jan 19 01:04:13 CST 2004

>>>>> "Chris" == Chris Dawson <cdawson at webiphany.com> writes:

Chris> How do I query Plugin.pm and determine if it has both process and
Chris> get_description?

require Plugin;
die unless Plugin->can("process") and Plugin->can("get_description");

Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

More information about the Pdx-pm-list mailing list