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

Re: Split this string

by TomDLux (Vicar)
on Oct 14, 2011 at 14:55 UTC ( #931538=note: print w/ replies, xml ) Need Help??


in reply to Split this string

Split on equal signs. The first array element contains only the first key, 'this'. The next array element contains the value for 'this', followed by the next tag. Use rindex() to find the rightmost space character, and substr to partition. Everything before the space is the value for 'this', everything after that last space is the next value.

You really should chomp the string.

As Occam said: Entia non sunt multiplicanda praeter necessitatem.


Comment on Re: Split this string

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (10)
As of 2014-08-20 07:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (107 votes), past polls