Guest_imported
New member
- Jan 1, 1970
- 0
Hi all 
I have a question about searching in Perl
For example :
Lets say a have a text file like
212.12.12.2
199.2.3.1
210.3.3.2
212.12.12.2
199.65.78.123
112.34.55.6
212.12.12.2
199.88.77.12
What I want to do know is to find out how many lines that contains ip number 212.12.12.2.
It´s 3 okej, but how do I get Perl to understands it ?
I have a question about searching in Perl
For example :
Lets say a have a text file like
212.12.12.2
199.2.3.1
210.3.3.2
212.12.12.2
199.65.78.123
112.34.55.6
212.12.12.2
199.88.77.12
What I want to do know is to find out how many lines that contains ip number 212.12.12.2.
It´s 3 okej, but how do I get Perl to understands it ?