Sorry, as I said I am new to this.
No problem, we're here to help. Pages such as "How do I post a question effectively?" are there to help people asking questions help the people answering them (despite their sometimes slightly patronizing titles).
I suspect the problem actually lies with the code that sets $shipcountry in your script. Are you using some kind of library to handle the input from the form? If so, I'd also look there for how it handles $shipcountry and why it might be appending the values.
A note on terminology for the future: A "list" in Perl is actually not what you've got with $shipcountry, that's a scalar (a single value) that contains a string (which happens to contain commas).
|