http://www.perlmonks.org?node_id=931538


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.