Have you tried to 'view source' on the HTML? If your value has a line break...
Post the relevant HTML and the relevant Perl code.
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
| [reply] |
I agree with Ovid that it sounds like an HTML problem, but you could always chomp the values. That way if there is a carriage return at the end, it'll get deleted, and if not, nothing will be altered.
hth, andy. | [reply] [d/l] |
i chomped the values and it didn't help, then ovid, i checked the html, and turns out it was my own dumb fault- it was in the regex i used:
@elements = split(/\|+/,$myvar); reading then writing back to a text file looking like this: 0|0|0|0
i should have used this:
@elements = split(/\|/,$myvar);
thanks though!
is there a place in here when i could post potentially useful code bits for those seeking to accomplish the same thing i was doing?
i was creating a simply survey.cgi to keep track of people's responses to a web poll.
| [reply] |
| [reply] |