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
In reply to Re: Recursive search and delete
by NetWallah
in thread Recursive search and delete
by qwerty80
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |