hi..i am new to perl language..ive given a task to extract some info from a logfile and print the extracted to a new file..what make it difficult is because it need to extract vetically..for example below with some conditions;
------------------------------------------------------------------------
C H W S Z S W T C D F R O M
Y E E O T I L N E A E R R
L D G Q N W E T T F V C G G
------------------------------------------------------------------------
0 0 65535 0 1 0 0 0 0 0 0 1 0 1
1 0 65535 0 1 1 0 0 0 0 0 1 1 0
2 0 65535 0 1 0 0 0 0 0 0 1 0 1
3 0 65535 0 1 0 0 0 0 0 0 1 0 1
4 0 252 0 1 1 0 0 0 0 0 1 1 0
5 0 65535 0 1 0 0 0 0 0 0 1 0 1
6 0 65535 0 1 0 0 0 0 0 0 1 0 1
7 0 65535 0 1 1 0 0 0 0 0 1 1 0
if (ORG==1 && ((STW==1) || (TLT==1)) || (MRG==1)
no problem;
else
problem;{
print {#the lines/columns which problems but only print the CYL, HD, WEG, WIE, DEF columns}
}
can anyone help me?thanks..