[ic] how to use a variable in a usertag in flypage.html

Ed LaFrance edl@newmediaems.com
Wed, 21 Mar 2001 10:32:47 -0800


At 02:01 PM 03/21/2001 +0530, you wrote:
>how do i use $somevariable defined inside a usertag defination in
>catalog.cfg in flypage.html
>

Make it the return value of your Usertag:

sub {
         ...
         return $somevariable;
}

...or push it into a scratch variable in the Usertag:

sub {
         ...
         $Scratch->{somevariable} = $somevariable;
         return '';
}

then you can get at it with [scratch somevariable] (of course the usertag 
will have to have been called beforehand).

- Ed L.


===============================================================
**** Virtual Hosting w/private IC Installation, $65/month! ****
---------------------------------------------------------------
New Media E.M.S.               Software Solutions for Business
463 Main St., Suite D          eCommerce | Consulting | Hosting
Placerville, CA  95667         edl@newmediaems.com
(530) 622-9421                 http://www.newmediaems.com
(866) 519-4680 Toll-Free       (530) 622-9426 Fax
===============================================================