[ic] Using Perl to Access IC's Data

Brian Smedley interchange-users@lists.akopia.com
Tue Jul 17 13:47:00 2001


I am looking for some documentation on how to use Perl to directly access IC's data.  In the perl portion of the documentation it has

[perl]
$name = $Values->{name};
$browser = $Session->{browser};
[/perl]

Which tells me how to assign some perl variables information from the $Values and $Session.  Great, exactly what I needed to know.  Now what other keys are available to me in these two references?  I would love to find a HTTP_REFERER.  I have found the list of objects and it tells me to refer to Interchange Programming for more details.  In the Interchange Templates documentation there is a chapter on Programming, yet this portion of the documentation sheds no light.  The only reference to $Session is again the little code snippet I copied into this message.   

Currently I am trying to pull out a price to do some logic on it. 

$price=$Tag->price;

When I echo $price later on I am getting $0.00 so I know I have found the correct tag but I am not using it correctly.  The documentation mentions a "code", this would be the product code I assume.  Now where do I find the product code in Perl as 

$code=$Values->{code};

does not work, and this is the only reference I can find.  I am assuming since a form was not filled out $Values is not what I am looking for.   Am I missing a large portion of documentation?  Have a stepped into a hole in the documentation?

Thanks in advance,

</brian>

---
Brian Smedley
Website Manager
Street Light Productions
brian@street-light.com