Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: string manipulations.

by davido (Cardinal)
on Nov 23, 2006 at 16:21 UTC ( [id://585741]=note: print w/replies, xml ) Need Help??


in reply to Re^2: string manipulations.
in thread string manipulations.

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://585741]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-26 01:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found