On 2004.08.13, Nathan Folkman <[EMAIL PROTECTED]> wrote:
> Before:
>
> <td><a ref="link[set $i]">Item $i</a></td>
>
> After:
>
> <td><a ref="link$i">Item $i</a></td>
These do not do the same thing, but I also think Rob's example is
incorrect. What I *think* he meant to do was:
set i 1
set link1 /page.adp
ns_adp_puts [subst {<td><a ref="[set link$i]">Item $i</a></td>}]
# outputs: <td><a ref="/page.adp">Item 0</a></td>}]
as opposed to:
ns_adp_puts [subst {<td><a ref="link$i">Item $i</a></td>}]
# outputs: <td><a ref="link1">Item 1</a></td>
-- Dossy
--
Dossy Shiobara mail: [EMAIL PROTECTED]
Panoptic Computer Network web: http://www.panoptic.com/
"He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on." (p. 70)
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of
your email blank.