[ic] Manually setting $Config->{ProductFiles}
Kevin Walsh
kevin at cursor.biz
Wed Dec 17 07:10:57 EST 2003
John Allman [allmanj at houseofireland.com] wrote:
> > It is not possible in embedded Perl. If you set it then went global and
> > called Vend::Data::update_productbase(), it would take effect.
> >
> I think i understand a bit now after googling. In order to see it taking
> any effect at all, i'm now setting ProductFiles and calling
> Vend::Data::update_productbase() at the start of a perl block which is
> autoloaded. Unfortunately the error log says Safe: Undefined subroutine
> &Vend::Data::update_productbase
>
> How should i be calling this subroutine?
>
That's what Mike meant when he said that you should call that from
global (i.e. non-local or embedded) Perl. Defining a global UserTag
or GlobalSub etc. will do the trick.
Perhaps you could write a global UserTag that you could call like
this:
[update-productbase tables="products foo bar"]
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin at cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/
More information about the interchange-users
mailing list