hey there
I am reading a file line by line...
each line is stored in a scalar variable($LINE) and then i need to extract all the characters from the line till the occurrance of the first ":" in the line and also extract all chracters between the fourth ":" and the next "," in the same line..................
can anyone tell me how to do that..
i believe substr($VARNAME,N,M) returns a substring between the Nth and Mth column in a line..
So if i could just read each character in a line and count the column numbers of the first and fourth colon(":") i guess this'd be possible...but i have no clue as to how i can read the variable $LINE character by character