Erm. Sorry :-)

I have done everything and I don't get anything when doing $ perl
module-pluggable-sample.pm, would you know why?

First of all I made a type there. It is

$ perl module-pluggable-sample.pl

The code has an error too. New version below:

<code>
use strict;
use warnings;

package Application;
use Module::Pluggable require => 1;

package main;

foreach my $plugin ( Application->plugins() ) {
   if ( my $code = $plugin->can("my_routine") ) {
       $code->();
   }
}
</code>

HTH!

--
Igor Sutton Lopes <[EMAIL PROTECTED]>

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to