pavan129 has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re: Perl script for serchin file content
by ikegami (Patriarch) on Dec 20, 2011 at 07:00 UTC
    You forgot to ask a question.
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: Perl script for serchin file content
by Anonymous Monk on Dec 20, 2011 at 08:20 UTC
Re: Perl script for serchin file content
by i5513 (Pilgrim) on Dec 20, 2011 at 09:28 UTC

    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!

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: Perl script for serchin file content
by TJPride (Pilgrim) on Dec 20, 2011 at 16:40 UTC
    The answer is yes. However, this sounds like a work assignment and you need to include at least a sample of the input and output data if you expect someone to post a solution. It's not interesting enough to be solved based on the clues given so far. Short of that, you could try hiring one of us for $25-$50 and get a script that does everything you want without you having to expend any brain power.

    See functions open, opendir, readdir, while, print, and read up on Perl regex (or the function index, depending on your needs).

A reply falls below the community's threshold of quality. You may see it by logging in.