[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] Accessing subs in the .pms
"Russ Mann" <tech@khouse.org> writes:
> How can I access subroutines in the Vend/*.pm files from an IC page?
Typically, you can't access them directly. The [perl] and [mvasp]
blocks are some kind of "special" environment. You should look at
http://developer.akopia.com/cgi-bin/ic/dev/icconfig_30.html
(which is the section in the reference guide about the "Interchange
Perl Objects"). Additionally, the Tag Regeference shows how to access
the IC tags from within perl. Personally, I really dig this kind of
IC development. More and more I am making my pages one big [perl]
block.
You might ask why I even bother to use IC is almost all of my pages
are straight perl. Well, IC provides some really handy mechanisms for
handling e-comm. I could re-write them all in my own perl library,
but why? Even if I did, it wouldn't be as well tested as IC.
--
(__) Doug Alcorn (mailto:doug@lathi.net http://www.lathi.net)
oo / PGP 02B3 1E26 BCF2 9AAF 93F1 61D7 450C B264 3E63 D543
|_/ If you're a capitalist and you have the best goods and they're
free, you don't have to proselytize, you just have to wait.