in reply to Find files recursively and get their attributes

All of your regular expressions are broken because they assume that '.' is treated as a literal character when, in fact, within a regular expression dot is a metacharacter that means "match anything except for newline" (in the default case, as you are using it). Also I'm not sure if your use of "*" in the regexes is intended to be a quantifier, or a wildcard. If the latter, that's another bug.

At the least, you need to escape your '.' characters within the regular expressions using backslash: "\.".

Your problem description is vague. I'd rather know what output you are getting, and what you would like to get.


Dave

Replies are listed 'Best First'.
Re^2: Find files recursively and get their attributes
by sriram83.life (Acolyte) on Apr 23, 2014 at 17:06 UTC
    Thanks Dave for your reply.I will change my regular expressions and try capturing required files.

    Actual output i want is an xml file that lists all the files ending with .swtag,.sys,.sys2 and .cmptag with their sizes and their full paths.

    Actual output i am getting is an empty xml file with beginning and ending tags.That means,files which i need are compressed with in zip file and tar files.After uncompressing those archives using File::Find module,my desired files are not reported to the xml file.