[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: HELP: perl variable in a minivend tag
Hi Ezra -
> I think this will help alot of ppl out as it's the first i've ever seen
> this function mentioned anywhere. Perhaps its time for me to print out
> the source and have a nice long read ;)
Here's one way to track down useful routines that might save you from
reading the *entire* source :-)
If there's a MiniVend tag that does the same thing as what you want to do
in your GlobalSub or UserTag (or does something similar), go to the
MiniVend installed directory and look in the file
"lib/Vend/Interpolate.pm". Generally in that file there will be a
subroutine that handles each MiniVend tag called "tag_xxxxx", so for
example you could look for a line like "sub tag_data", "sub tag_if",
"sub tag_price", etc. Then you would know you could call (for example)
Vend::Interpolate::tag_price() from your GlobalSub or UserTag.
Larry Leszczynski
larryl@furph.com
--
furph, Inc. WWW/Unix/Windows Solutions 734-513-7763 (voice)
info@furph.com http://www.furph.com 734-513-7759 (FAX)