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

Dan Browning db at kavod.com
Sun Sep 14 22:47:06 EDT 2003


* Grant <listbox at email.com> [2003-09-14 14:04]:
> So, if anyone can help me with the three things I'm stuck on I'd greatly
> appreciate it.  Here they are:

Perhaps some quickie-advice will help...

> 1. nested subs in a UserTag

Is it that important that they be nested?


Usertag bob Routine <<EOR

sub a
{
	return "a";
}

sub
{
	return a();
}
EOR

> 3. passing variables to a UserTag

My favorite way:

Usertag bob addAttr
Usertag bob Documentation <<EOD

=head1 USAGE

	[bob sku='abc-123' thumb='big.gif']
	
=cut

EOD

Usertag bob Routine <<EOR

sub
{
	my $opt = shift;
	return $opt->{ 'sku' } . $opt->{ 'thumb' };
}

EOR

I hope that helps,

-- 
Dan Browning, Kavod Technologies, <db at kavod.com> 360.843.4074x217
6700 NE 162nd Ave, Ste 611-210, Vancouver, WA.    Random Fortune:
He is a man capable of turning any colour into grey.
		-- John LeCarre 


More information about the interchange-users mailing list