in reply to loop through values in a string and print " " around each value.
$str = "Leesville,TX,78122,830,48177,Gonzales,P,"; $str = "\"$str"; $str =~ s/\,/\"\,\"/g; $str =~ s/\"$//; print $str;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: loop through values in a string and print " " around each value.
by kevyt (Scribe) on Jan 12, 2007 at 04:20 UTC |