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

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on program for getting the name of the software from the software folder

Replies are listed 'Best First'.
Re: program for getting the name of the software from the software folder
by DrHyde (Prior) on Apr 24, 2013 at 10:58 UTC
    What have you tried so far? What did you expect to happen? How do the results differ from what you expected?

      Hi Dr Hyde.

      I am new to the programing.hence i was not able to write it

        In that case I recommend that you either hire a programmer (see jobs.perl.org) or learn to program. Once you've done one of those, I'm sure that the solution to your problem will be obvious.

        This website is not intended to be a place where you can get people to do all your work for you for free.

Re: program for getting the name of the software from the software folder
by uday_sagar (Scribe) on Apr 25, 2013 at 01:50 UTC
    Hello Pearlpet,

    Can you be a bit specific? Are you sure that the folder contains those(readme.txt, version.txt) files and those inturn contain the required information?
    If yes, writing perl is in minutes. You just need to open those files and parse for a specific pattern to grab the information.

      I got the code as

      my $directory = 'C:/directory/dir/'; opendir(DIR,$directory); my @files = readdir(DIR); closedir(DIR); foreach(@files){ print $_,"\n";

      but what i need is the code for getting the file which has version and its software name .

      readme.txt,version,install.php is just an example where we can get easily the requirement. i want the code to find that.