http://qs321.pair.com?node_id=522511

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.