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!
In reply to Re: Perl script for serchin file content
by i5513
in thread Perl script for serchin file content
by pavan129
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |