[ic] IC/eBay API integration -> impending donation

Jon Jensen jon at endpoint.com
Tue Sep 16 20:39:20 EDT 2003


On Tue, 16 Sep 2003, Grant wrote:

> > You have a variable scope problem. You're declaring a lexical "$tag"
> > variable inside the main sub, which can't be seen from the sub whatever.
> > You need to either declare it so it's visible from both subs, or pass the
> > value from one to the other.
> 
> What can I add to the code to declare $tag so it's visible from all subs?

You can just declare it before either of the subs. Watch out that the name
doesn't conflict with other usertags, though, since they run in the same
package Vend::Interpolate as others, IIRC. I'd use something like
$parsexml_tag.

Jon


More information about the interchange-users mailing list