C
CatcherInTheRye
Hi, How are you.
I am a complete perl beginner.
So, now I don't know how to handle efficiently the raw data to any data
structure.
89 ;1;148;|89 ;2;316;|89 ;3;484;|45 ;1;142;|
45 ;1;142;|89 ;1;148;|33 ;2;258;| ; ; ;|
89 ;2;316;|89 ;3;484;|101;1;120;| ; ; ;|
89 ;3;484;|89 ;1;148;|89 ;2;316;|46 ;1;76 ;|
46 ;1;76 ;|67 ;2;248;|90 ;3;500;|33 ;2;258;|
33 ;2;258;|46 ;1;76 ;|45 ;1;142;|90 ;3;500;|
90 ;3;500;|91 ;3;372;|33 ;2;258;| ; ; ;|
91 ;3;372;|91 ;1;36 ;|42 ;3;446;|81 ;3;356;|
91 ;1;36 ;|101;1;120;|92 ;1;50 ;| ; ; ;|
92 ;1;50 ;|71 ;1;6 ;|72 ;3;370;|74 ;2;214;|
42 ;3;446;|42 ;1;110;|91 ;3;372;| ; ; ;|
101;1;120;|89 ;2;316;| ; ; ;| ; ; ;|
Raw data shown above.
I hope to check data validation each other data.
Let me show you the meaning of data.
"89 ;1;148" of first line is KEY and means CELL;SECTOR;PN
and has its neighbor list like "89 ;2;316;|89 ;3;484;|45 ;1;142;|"
Other line has same meaning.
I hope to code the script to process following conditions.
1. Don't have same PN in the same line. If there is , print "Same PN in
the '46 ;1;76 ' "
89 ;1;148;|89 ;2;316;|89 ;3;484;|45 ;1;142;|
* * * *
2. Second field "89 ;2;316;" should be existed in the line where "89
;2;316;" is key.
if there is not, print "89 ;1;148;" has "89 ;2;316;" but "89 ;2;316"
don't have "89 ;1;148;".
89 ;1;148;|89 ;2;316;|89 ;3;484;|45 ;1;142;|
+++++++++ *********
89 ;2;316;|89 ;1;149;|89 ;3;484;|101;1;120;|
********* +++++++++
Thanks in advance,
I am a complete perl beginner.
So, now I don't know how to handle efficiently the raw data to any data
structure.
89 ;1;148;|89 ;2;316;|89 ;3;484;|45 ;1;142;|
45 ;1;142;|89 ;1;148;|33 ;2;258;| ; ; ;|
89 ;2;316;|89 ;3;484;|101;1;120;| ; ; ;|
89 ;3;484;|89 ;1;148;|89 ;2;316;|46 ;1;76 ;|
46 ;1;76 ;|67 ;2;248;|90 ;3;500;|33 ;2;258;|
33 ;2;258;|46 ;1;76 ;|45 ;1;142;|90 ;3;500;|
90 ;3;500;|91 ;3;372;|33 ;2;258;| ; ; ;|
91 ;3;372;|91 ;1;36 ;|42 ;3;446;|81 ;3;356;|
91 ;1;36 ;|101;1;120;|92 ;1;50 ;| ; ; ;|
92 ;1;50 ;|71 ;1;6 ;|72 ;3;370;|74 ;2;214;|
42 ;3;446;|42 ;1;110;|91 ;3;372;| ; ; ;|
101;1;120;|89 ;2;316;| ; ; ;| ; ; ;|
Raw data shown above.
I hope to check data validation each other data.
Let me show you the meaning of data.
"89 ;1;148" of first line is KEY and means CELL;SECTOR;PN
and has its neighbor list like "89 ;2;316;|89 ;3;484;|45 ;1;142;|"
Other line has same meaning.
I hope to code the script to process following conditions.
1. Don't have same PN in the same line. If there is , print "Same PN in
the '46 ;1;76 ' "
89 ;1;148;|89 ;2;316;|89 ;3;484;|45 ;1;142;|
* * * *
2. Second field "89 ;2;316;" should be existed in the line where "89
;2;316;" is key.
if there is not, print "89 ;1;148;" has "89 ;2;316;" but "89 ;2;316"
don't have "89 ;1;148;".
89 ;1;148;|89 ;2;316;|89 ;3;484;|45 ;1;142;|
+++++++++ *********
89 ;2;316;|89 ;1;149;|89 ;3;484;|101;1;120;|
********* +++++++++
Thanks in advance,