in reply to Perl script for serchin file content

See perlre to see how could pattern be build and customize next code to read the file (using the name of file as argument to your program):

my %items; while (<>) { if (/my(searcheditem)pattern/) { $items{$1}++; } } foreach my $item (keys %items) { do_what_do_you_want $items{$item}; }

We cannot do your homework!

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.