Hi,
>
> I found the error one of my input tags had a typo
>
> <input type="text" name="date_sub" size="10" maxlength="10"
> value="[+$date+]" class="formfield"'>
>
> note the extra ' at the end of the input tag. That combined
> with the foreach syntax described below caused the
> segmentation fault. If anyone wants to further debug this I
> will be happy to help out.
>
Great you found it.
In case you have a small test page that I can run here and shows the
segfault, I would like to try to fix it.
Gerald
Here is as small as I can make it
<HTML>
<body>
<form>
<input type="text" name="d" value=""'>
[-
$get_t->[0][0] = 1;
$get_t->[1][0] = 2;
-]
[$foreach $single_t(@{$get_t})$]
*
[$endforeach$]
</form>
</body>
</html>
If you remove either the erroneous " ' " or the line "$get_t->[1][0] = 2;"
(reducing the foreach loop to one cycle) the page functions normally. With
both in it seg faults. Good luck in debugging this and thanks for all your
development work
--
View this message in context:
http://www.nabble.com/seg-fault-from-foreach-loop-tf3827298.html#a11014267
Sent from the Embperl mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]