go ahead... be a heretic | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
You didn't test my solution. If you reject my solution, at least test it first. What I provided splits on ',' (comma), and thus it's impossible for it to foul up in the way you're saying it does. I just tested it myself and found its behavior to be as you need, not as you're describing; it splits on comma, not on space. If you need reassurance, add the following line to the top of the script: $" = "/ "; If you do that, you'll see in the output clearly that the colors are being split correctly in the solution I provided. Dave In reply to Re^3: string manipulations.
by davido
|
|