Im trying to produce results like
Line from fileA
Line from fileB
Line from fileA
Line from fileB etc
I have code like this
while(<fileA>)
{
print line
open fileB
while(<fileB>)
{
some processing
print line from fileB
}
close(fileB);
}
close(fileA);
Im using $_ to access a line but its only picking up the line from the 1st file not from the second so i get each line printed twice. WHY? dear GOD why??????
Line from fileA
Line from fileB
Line from fileA
Line from fileB etc
I have code like this
while(<fileA>)
{
print line
open fileB
while(<fileB>)
{
some processing
print line from fileB
}
close(fileB);
}
close(fileA);
Im using $_ to access a line but its only picking up the line from the 1st file not from the second so i get each line printed twice. WHY? dear GOD why??????