in reply to get the files inside War

Hi Anonymous Monk,

Your post seems to have caused some confusion, (war could be a typo of tar) perhaps if you explained what a WAR file is then it would have made more sense to people. File::Find will not know how to unpack the WAR file, so you will need to work out how to do this before searching the resulting files. Using google I found this post which details unpacking jar files. Perhaps you could adapt/learn from it. Failing that use Super Search and see if you can find anything here that will help you.

Hope this helps

Martin

Replies are listed 'Best First'.
Re^2: get the files inside War
by bart (Canon) on Jun 14, 2007 at 10:27 UTC
    If a WAR file is a JAR file, then it actually is a ZIP file and you can open those with Archive::Zip — which is built on top of Compress::Zlib.

    So yes, it can be done, but you'll have to write your own callback for File::Find to check the file extension, open the ZIP file, and list the files in them, or extract the files you want.