Creating a html table from arrays in perl

B

balasubv

Hi all,
Is it possible to create a html table to be presented as a webpage from
values stored in a perl array
for example my perl file outputs 3 arrays in the first pass and another
similar set of arrays in the next pass
@array0={1,2,3}
@array1={name,designation,role}
@array2={joe,beck,foo,nancy,joel,rooma}
@array3={assistant,software,manager,engineer,progrmmer,developer,joker,cleaner}

i need to create a html table which looks like this and so on and so
forth from the arrays dynamically
1 ....2
name designation role name designation role
joe assistant
beck manager
foo engineer
nancy programmer
joel joker
roma cleaner


Can i use HTML::Table; module of perl ? Has anybody implemented this?
if so can i get an example of how this can be done?

thanks in advance for all the help
bala
 
U

usenet

@array0={1,2,3}
@array1={name,designation,role}
@array2={joe,beck,foo,nancy,joel,rooma}
@array3={assistant,software,manager,engineer,progrmmer,developer,joker,cleaner}

i need to create a html table which looks like this and so on and so
forth from the arrays dynamically
1 ....2
name designation role name designation role
joe assistant
beck manager
foo engineer

Can you explain how you get from your arrays to the sample output you
presented? You seem to have three column headers (name designation
role) but only two values. And your output skips items in your third
array without explanation.

I can't make sense of the how the output is supposed to be derived (I
cannot see how @array2 relates to @array3, or how @array1 relates to
either of them, and the purpose of @array0 is unclear). I can't help
you accomplish a task that I cannot understand, but maybe there are
some mind-readers in the group...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top