Dear All,
I am just a beginner in using perl,so please could one of you help me in achieving the output described below.
I have the following lines in my data file
london:sddpcm:2:fscsi0:NORMAL:ACTIVE:10000000C9292FC5
london:sddpcm:2:fscsi1:NORMAL:ACTIVE:10000000C9292297
chester:sddpcm:2:fscsi0:NORMAL:ACTIVE:10000000C979FDD5
chester:sddpcm:2:fscsi1:NORMAL:ACTIVE:10000000C97D7590
I am trying to generate a html page with the above contents in a table, currently I am able to generate the webpage but a different table for each line. But I would ideally want to create a separate table for each hostname (london, chester are hostnames) and not for each line. In other words I want to group the details based on hostname.
I am sure of the logic and am able to do it using shell scripting, but because of poor knowledge in perl I am posting this here for your help.
TIA
KPKIND
I am just a beginner in using perl,so please could one of you help me in achieving the output described below.
I have the following lines in my data file
london:sddpcm:2:fscsi0:NORMAL:ACTIVE:10000000C9292FC5
london:sddpcm:2:fscsi1:NORMAL:ACTIVE:10000000C9292297
chester:sddpcm:2:fscsi0:NORMAL:ACTIVE:10000000C979FDD5
chester:sddpcm:2:fscsi1:NORMAL:ACTIVE:10000000C97D7590
I am trying to generate a html page with the above contents in a table, currently I am able to generate the webpage but a different table for each line. But I would ideally want to create a separate table for each hostname (london, chester are hostnames) and not for each line. In other words I want to group the details based on hostname.
I am sure of the logic and am able to do it using shell scripting, but because of poor knowledge in perl I am posting this here for your help.
TIA
KPKIND