You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by "Steven D. Arnold" <st...@permanent.cc> on 2001/04/07 22:31:47 UTC

possible html replacement bug

<<< No Message Collected >>>

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: possible html replacement bug

Posted by Kee Hinckley <na...@somewhere.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

At 4:15 PM -0400 5/4/00, Steven D. Arnold wrote:
>	dest.options[+ $i +]].text = "bar"
>	dest.options[+ $i +]].value = "bar"

[[ is the escape mechanism that embperl uses to escape a [, so it's 
seeing "[[+ $i +]]" and assumin you really want to turn off special 
processing of the "[+".  Your work around works, as would:
	dest.options[+"[$i]"+]
although that disrupts the logic of the language, which is poor. 
Your cleanest solution is to excape the first [
	dest.options[[[+ $i +]]
should do what you want
- -- 

Kee Hinckley - Somewhere Consulting Group - Cyberspace Architects(rm)

I'm not sure which upsets me more: that people are so unwilling to accept
responsibility for their own actions, or that they are so eager to regulate
everyone else's.

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.2 for non-commercial use <http://www.pgp.com>

iQA/AwUBORHlWyZsPfdw+r2CEQLi0gCaA/Kqiki/+wrzapPYgWrS0cmlFYkAoOTj
HSoHbrONorMuNt3tWSiWdZtp
=/ypP
-----END PGP SIGNATURE-----