[ic] Accessing subs in the .pms

Russ Mann interchange-users@lists.akopia.com
Tue May 29 21:24:00 2001


How about in a GlobalSub or usertag?

Thanks,

Russ

-----Original Message-----
From: interchange-users-admin@developer.akopia.com
[mailto:interchange-users-admin@developer.akopia.com]On Behalf Of Doug
Alcorn
Sent: Tuesday, May 29, 2001 7:28 PM
To: interchange-users@developer.akopia.com
Subject: 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. 
_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users