Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re^2: problems splitting string

by VSarkiss (Monsignor)
on Dec 15, 2005 at 16:08 UTC ( #517003=note: print w/ replies, xml ) Need Help??

in reply to Re: problems splitting string
in thread problems splitting string

That kinda works: it leaves a trailing space on the middle elements (i.e., '1 Cat ' instead of '1 Cat').

Of course, that may be immaterial to the OP -- can't tell.

Comment on Re^2: problems splitting string
Select or Download Code
Replies are listed 'Best First'.
Re^3: problems splitting string
by mrborisguy (Hermit) on Dec 15, 2005 at 16:11 UTC

    Yep. Good catch, I noticed that, and was changing it, then I noticed you posted. I tried to update with a solution using map to take off the trailing space, but it seems VSarkiss' solution is similar to mine but more elegant, so just refer down a few posts.


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2015-12-01 03:20 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (792 votes), past polls