Also, it looks like you don't have strict enabled. You should. It will save you hours and hours of work.
One of the easiest ways to debug a chunk of code is to insert some print or warn statements. Try modifying your code as follows:
@INFFiles = `dir /b $filespec`; use Data::Dumper; warn "GETTING FILES " warn Dumper \@INFiles; foreach $infFile (@INFFiles) { warn "PROCESSING $infFile";
You will be able to see what values are being used for @INFiles.
TGI says moo
In reply to Re: Please help me
by TGI
in thread Please help me
by mtrasp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |