Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

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 ( [id://1030558]=note: print w/replies, xml ) Need Help??


in reply to program for getting the name of the software from the software folder

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.
  • Comment on Re: program for getting the name of the software from the software folder

Replies are listed 'Best First'.
Re^2: program for getting the name of the software from the software folder
by pearlpet (Initiate) on Apr 25, 2013 at 07:39 UTC

    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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1030558]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2024-04-19 18:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found