Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to read two lines at once? 1

Status
Not open for further replies.

fabien

Technical User
Sep 25, 2001
299
AU
Hi!

I have the following code

foreach $line (@raw_data)
{
chop($line);
($w_name,$last_mod,$last_user,$tblsp,$extf,$nbSW,$SWs,$tot)=split(/ /,$line);

if ($w_name ne "PROJECT" ) {
print" <tr> \n";
print"<td><a href=\"# print" <td>$w_name</td>\n";
print" <td>$last_mod</td>\n";
print" <td>$last_user</td>\n";
print" <td>$tblsp</td>\n";
print" <td>$extf</td>\n";
print" <td>$nbSW</td>\n";
print" <td>$SWs</td>\n";
print" <td>$tot</td>\n";
print" </tr>\n";
}
}

This read one line at a time and writes a row in an HTML table

Now I want to read two lines at once, I have some new info on the second line I want to add on the same row.

How can I do this?

Thanks
 
fabien,

Can you post a sample of the data?

--Paul

It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top