[Maypole] Pb with :Exported

Julien Gilles jgilles@glmultimedia.com
Thu, 13 May 2004 13:47:25 +0200


I have the folowing problem with the ":Exported" :

I have a simple Maypole Application, Tv.pm (in
/usr/local/lib/site_perl/)

package Tv;
use base 'Apache::MVC';
use Tv::Seq; 

Tv->setup(...);
Tv->config->{uri_base} = ...;

1;

In /usr/local/lib/site_perl/Tv/Seq.pm, I just put :

package Tv::Seq;

sub create :Exported {

}

1;

In error.log from Apache :

[error] Invalid CODE attribute: Exported at /usr/local/lib/site_perl/Tv/Seq.pm (...)


If I remove the "use Tv::Seq;", it's ok. Do I need to add a "use
something" to Tv/Seq.pm ?
 
-- 
Julien Gilles.