Hey I need help parsing data, here is what it looks like (this is a single line from the input file):
1189: 4m56.5 23.55us ..00C904 ....6010 WORD WRI OK .......---- --- ....
to split up the data I am using:
@data = split (/[\ \t\n\-]+/,$_);
which returns:
{1189:,4m56.5,23.55us,..00C904,....6010,WORD,WRI,OK,......,.....};
I want to remove even more I do not want all of the ....+ strings and I don't want the ".." infront of valid data. This is what I would like:
{1189:,4m56.5,23.55us,00C904,6010,WORD,WRI,OK}
I have tried adding in [\.\.]*, (\.(\.)) into the split but this does not work.
I use a next if to get rid of 1189: and WORD, WRI, OK.
Any ideas on how ro remove the extra .. from my data?
1189: 4m56.5 23.55us ..00C904 ....6010 WORD WRI OK .......---- --- ....
to split up the data I am using:
@data = split (/[\ \t\n\-]+/,$_);
which returns:
{1189:,4m56.5,23.55us,..00C904,....6010,WORD,WRI,OK,......,.....};
I want to remove even more I do not want all of the ....+ strings and I don't want the ".." infront of valid data. This is what I would like:
{1189:,4m56.5,23.55us,00C904,6010,WORD,WRI,OK}
I have tried adding in [\.\.]*, (\.(\.)) into the split but this does not work.
I use a next if to get rid of 1189: and WORD, WRI, OK.
Any ideas on how ro remove the extra .. from my data?