in reply to Parsing a table with variable columns on each line

"Sorry if that comes out poorly here.

It does. You need to read Markup in the Monastery and Perl Monks Approved HTML tags -- specifically, about the use of <c>...</c> which is also BOLDFACED in the cautionary note below the text input box where you create a node.. Then you can make your data render reasonably (and make it downloadable for those with time to help on this).

Hint only for now: read perldoc -f split (aka: split) re limits.:

Apples 0.5 -10 Emma:17:15:14:18 Peter:2:7:4:1 Pears 0.7 -12 Alex:101:144:110:111 Oranges 0.8 -14 Shan:12:14:9:57 Heena:65:17:15:24 Rach +el:1:5:18:54
and the desired outcome will look like this:
Apples 0.5 -10 Emma:17:15:14:18 Apples 0.5 -10 Peter:2:7:4:1 Pears 0.7 -12 Alex:101:144:110:111 Oranges 0.8 -14 Shan:12:14:9:57 Oranges 0.8 -14 Heena:65:17:15:24 Oranges 0.8 -14 Rachel:1:5:18:54

Replies are listed 'Best First'.
Re^2: Parsing a table with variable columns on each line
by Anonymous Monk on Oct 23, 2009 at 16:29 UTC
    Thanks ww,
    I did see the markup guidelines, just wasn't sure where the code for tab was. Oops. Still not.

    I'll read the perldoc. Thanks for the reply and accurate representation of my problem.

    Have a nice weekend.

      No special code required to have your tabs embedded; just cut'n paste from your tabified content.

      Code tags are sorta' like really smart <pre> tags, on steroids. (Don't use pre!)

      Although a casual scan of a few posts might mislead, markup here is NOT precisely .html; code is an instance.