Hi jiaoziren, Try this,

TIMTOWDI

use strict; use warnings; use HTML::TableTiler; my @matrix; while(<DATA>){ chomp; my @row = split/,\s*/, $_; next if ($row[0] !~ m/^B/); push(@matrix, [@row]); } my $tt = HTML::TableTiler->new(); print $tt->tile_table(\@matrix); __DATA__ PACKHAM,Staeven,MELBOURNE,3011, JACKSON,Shane,MELBOURNE,3004, PADDLE,Ben,MOONEE PONDS,3053,C RAHIM,Stuart,MELBOURNE,3000,C LAI,Bernard,MELBOURNE,3039, BAIRD,Michael,MELBOURNE,2073, FAIRSERVICE,Daniel,MELBOURNE,3000,N GAKOVIC,D,MELBOURNE,3004, MALCOLM,Raymond,MASCOT,2060,X HALEY,Peter,MIRANDA,2640, WALKER,Richard,MALVERN,3150,N HALL,David,MELBOURNE,3002, VALLAK,Simon,MELBOURNE,3043, BALLANTYNE,Anne,MELBOURNE,3000,C BALLER,Sarah,MELBOURNE,3000,C

Regards,
Velusamy R.


eval"print uc\"\\c$_\""for split'','j)@,/6%@0%2,`e@3!-9v2)/@|6%,53!-9@2~j';


In reply to Re: Help on String manipulation by Samy_rio
in thread Help on String manipulation by jiaoziren

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.