Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Help on String manipulation

by Samy_rio (Vicar)
on May 13, 2006 at 05:18 UTC ( #549175=note: print w/replies, xml ) Need Help??


in reply to Help on String manipulation

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';

Replies are listed 'Best First'.
Re^2: Help on String manipulation
by jiaoziren (Initiate) on May 13, 2006 at 05:23 UTC
    cheers mate.I'll keep your snippet and do some more studies on it.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://549175]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2018-01-21 03:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (227 votes). Check out past polls.

    Notices?