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. [Trimmed].
I am a beginner too but try this:
my $count
while my $filevar ()
{
while ($fil
Marcos,
Thanks a lot!
Best regards,
ABC
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 16, 2003 4:36 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: search and count
call this script like
perl script.pl File_name.txt
perl script.pl
, July 16, 2003 10:30 AM
To: [EMAIL PROTECTED]
Subject: search and count
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
VIO
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