Hi
I have a script that reads data in this format:
6PA4345345 545 445 445
3IK3413755 546 545 454
456OL74346 768 545 455
TOTAL 434
I want only the first column of every line, so I'm using substr($line,10,0). The problem is when it reads the " TOTAL" line because it has a TAB as the first character. How can I detect the tab character?
I though something like:
but of course is not working.
Hope someone gives me an idea. Thanks
I have a script that reads data in this format:
6PA4345345 545 445 445
3IK3413755 546 545 454
456OL74346 768 545 455
TOTAL 434
I want only the first column of every line, so I'm using substr($line,10,0). The problem is when it reads the " TOTAL" line because it has a TAB as the first character. How can I detect the tab character?
I though something like:
Code:
if ( index($prev_line, "/t", 0)) != -1)
print HANDLE_CUSIPFILEOUT "$prev_line\n"
Hope someone gives me an idea. Thanks