At Wed, 10 Jul 2002 11:38:40 +0100, James Ponder wrote:
> The only reason I'm using Embperl subroutines is that I want to
> import a bunch of common routines, like so:
> 
>   Execute ({ inputfile => 'share.epl', import => 1 });
> 
> However this didn't import perl subroutines, so I switched over to
> Embperl subroutines instead.
> 
> Is there a better solution?

write a normal (ie: not Embperl) perl module, and then import from
that (see perldoc perlmod and perldoc Exporter).

(here i use the word "import" to mean the normal perl
 "use Foo qw(list of imported symbols);", not the Embperl "import"
 keyword. same result, very different mechanism)


If you are using HTML::EmbperlObject, consider using
EMBPERL_OBJECT_HANDLER_CLASS, in order to have the importing done
implicitly (by inheritance) in every page.

-- 
 - Gus

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to