> From: suppressed [mailto:interchange-users- > suppressed On Behalf Of Jeff Fearn > > On Mon, 31 Jan 2005 06:37:18 -0800, Ed LaFrance (New Media LLC) > <suppressed> wrote: > > At 09:16 PM 1/30/2005, you wrote: > > > > >Hi, I want to allow the Date::Calc modules functions to be used in the > > >HTML pages on my site. Is there one place I can put this that will > > >allow it to be run on any store on the server? > > > > > >Jeff > > > > The best thing to do would be to install the module in your system Perl, > > though you could also install it locally for Interchange. > > I have Date::Calc installed in the system perl. > > > The you can call > > it in a GlobalSub or UserTag, and perhaps even in a [perl global=1] > block, > > provided that you have the catalog in the AllowGlobal configuration > string. > > Does this mean that I need to write a wrapper for every function I > wanted to use from Date::Calc? > > I was hoping to be able to bypass the Tag stuff entirely, just using > [perl] and writting perl code in that on html pages. > > Jeff Set AllowGlobal for this catalog in interchange.cfg and then in your inline perl block call it like this: [perl global=1] use Date::Calc qw(Day_of_Week Add_Delta_Days); [/perl] That should work for you, good luck! -Ron _______________________________________________ interchange-users mailing list suppressed http://www.icdevgroup.org/mailman/listinfo/interchange-users
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.