Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

pulling file names from your PC

by JFarr (Sexton)
on Jan 11, 2006 at 17:42 UTC ( [id://522511]=perlquestion: print w/replies, xml ) Need Help??

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

Hello Monks. I need to be able to check if a file, which will change version names frequently, is in a directory, then I need to be able to grab that file name. I can't figure out how to do it. Help please.
For example, the file will be names something like Something_binaries- +R5.23.0.0_patch_V5.0.29.0_DiffList.txt. So I want to search a directory for*_patch_*_DiffList.txt, grab the file name and do whatever I need to do with it.
Is there a way to do this? I'm assuming there is, but have not been able to find what I'm looking for. It help if you know what key words you need for your search lol.

Replies are listed 'Best First'.
Re: pulling file names from your PC
by john_oshea (Priest) on Jan 11, 2006 at 17:57 UTC
      You mean glob, i.e. http://perldoc.perl.org.


      www.perldoc.com has been down for a while. Use [doc://XXXXX], and will link to the relevant keyword on perldoc.perl.org. For example, [doc://glob] gives glob.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-19 17:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found