Hi,

I am a beginner to Perl. Well, I have a scenario like this. I have a
pattern like VIOLATE in the file. So, I want to use the perl to search
that pattern and see how many times it found such pattern. For example

 

VIOLATE

ABC

ABC

ABC

VIOLATE  ABC VIOLATE [in the same row and so I want it to count as one]

ABC

ABC

VIOLATE

VIOLATE

 

I just want to report as 4 only. 

 

 

Thank you & best regards,

ABC

 

Reply via email to