in reply to Parsing Variables

You could simply substitute "space"s by "td"s. You can start with this:

$input =~ s/ /<\/td><td>/g;

Also, this looks like a case for using <code> tags, instead of a table.