Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hi Monks, I'm hoping someone can assist with trying to get single quotes around a string of comma separated values. I have a variable containing a string such as CAT,DOG,BIRD,COW and I need that string to look like this 'CAT','DOG','BIRD','COW' because I'll be passing it to a sql statement as part of an "IN" clause and the datatype is a VARCHAR. Any help would be greatly appreciated. I was attempting to use the join command but I can't quite get it to work. In reply to How to add quotes to comma separated values in a String by dirtdog
|
|