It looks like your second time through the loop, the contents of @files, will be overwritten.
Do you even need a loop? Would the following not work as well?
@files = File::Find::Rule->file() ->name( "*.wma", "*.wmv" ) ->in( 'C:\Test\Calls\Archive', 'C:\Test\Calls\History');
In reply to Re: Trouble with File::Find::Rule
by wazat
in thread Trouble with File::Find::Rule
by sowais
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |