my $data = {}; while ( chomp( $_ = <DATA> ) ) { my $list = [ split ]; tr /"//d foreach @{$list}; push @{$data->{pop @{$list}}}, [ @{$list} ]; } foreach ( sort keys %{$data} ) { print "$_\n"; foreach ( @{$data->{$_}} ) { print join ', ', @{$_}; print "\n"; } print "end\n"; } __END__ "-69.87" "40.07" "952026060" "-69.85" "40.07" "952026060" "-69.84" "40.07" "952026060" "-65.64" "41.13" "952026064" "-65.66" "41.15" "952026064" "-65.60" "41.32" "952026064" "-65.61" "41.33" "952026064" "-65.57" "41.15" "952026066" "-65.57" "41.13" "952026066" "-65.57" "41.12" "952026066" "-65.56" "41.11" "952026066" "-65.56" "41.10" "952026066" "-65.54" "40.97" "952026066" "-65.54" "40.96" "952026066" "-65.53" "40.95" "952026066" "-65.53" "40.94" "952026066" "-65.47" "41.16" "952026067" "-65.46" "41.15" "952026067"

In reply to Re: formatting help by i43s
in thread formatting help by robs

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.