[ic] usertag passing args by reference (perl newby)
Gert van der Spoel
gert at 3edge.com
Wed Aug 27 08:30:44 UTC 2008
> -----Original Message-----
> From: interchange-users-bounces at icdevgroup.org [mailto:interchange-
> users-bounces at icdevgroup.org] On Behalf Of Marco Mescoli
> Sent: woensdag 27 augustus 2008 10:07
> To: interchange-users at icdevgroup.org
> Subject: [ic] usertag passing args by reference (perl newby)
>
> Dear list
> Is there an example to pass args to a usertag for reference or have
> more
> then one return value from a usertag?
In code/UI_Tag/list_pages.coretag you have a usertag which returns either
an array reference, or a string value
\@pages is a reference to an array, so it can contain multiple values.
You can also return a reference to a hash for example ...
Here a standard perl example for passing on arrayreferences:
http://icfun.blogspot.com/2008/06/perl-returning-array-reference-from.html
For passing arguments to a usertag, I suggest you read:
http://www.interchange.rtfm.info/icdocs/Creating_custom_Interchange_tags.htm
l
CU,
Gert
More information about the interchange-users
mailing list