Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date ][Interchange by thread ]

RE: [ic] Recursive Perl Function?




> -----Original Message-----
> From: Craig Beasland [mailto:craig@hotmix.com.au]
> Sent: Thursday, March 29, 2001 9:03 PM
> To: interchange-users@lists.akopia.com
> Subject: [ic] Recursive Perl Function?
> 
> 
> Hi there,
> 
> We would like to add a simple Bulletin Board system to one of 
> our systems.
> The simple solution is to add a function which display a line from the
> BBtable, calls itself to see if there are any "children" 
> which in turn calls
> itself and so on.
> 
> Fairly simple to do in Visual Basic my programming language 
> of choice until
Nah, I won't say it!

> recently, but far more difficult in Interchange.  I 
> experimented with a
> UserTag, but then the UserTag would need to call itself using 
> an Interchange
> tag.

I don't think so. Whatever output you require for the UserTag should be
parsed and presented. Maybe you want to generate the "table" output within
the function (given input parameters) and then output it to the page. i.e.
One tag.

Maybe you are not putting a sub within a sub i.e.. Think of the UserTag sub
as a program, the recursive function is a subroutine within it. Shouldn't be
anything wrong with that. It's legal in Perl.

__________________________________________________________________________
Please Note :
Only  the intended recipient is authorised to access or use this e-mail.  If
you are not the intended recipient,
please delete this e-mail and notify the sender immediately.   The contents
of this e-mail are the writer's 
opinion and are not necessarily endorsed by the Gunz Companies unless
expressly stated.

We use virus scanning software but exclude all liability for viruses or
similar in any attachment.



_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users


Search for: Match: Format: Sort by: