in reply to Recursive search and delete
Your statement:
Looks for an exact string match between the $currentFile and "abc*.xml*".if ( $currentFile eq $searchfile )
It is unlikely to find a file with that name.
You could use regular expressions to match the file name, but I would recommend re-designing your code around the File::Find module and friends (File::Find::Match).
"By three methods we may learn wisdom: First, by reflection, which is noblest; Second, by imitation, which is easiest; and third by experience, which is the bitterest." -Confucius
|
|---|