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

Jon Jensen jon at endpoint.com
Tue Sep 16 19:16:25 EDT 2003


On Tue, 16 Sep 2003, Grant wrote:

> Usertag parsexml hasEndTag
> Usertag parsexml Interpolate 1
> Usertag parsexml Routine <<EOR
> 
> sub whatever {
>         if ($tag eq "XMLDOC_WRAPPER") {
>                 return;
>         }
> }
> 
> sub {
>         my $tag="";
> }
> 
> EOR

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.

Jon


More information about the interchange-users mailing list