in reply to Please help me
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Please help me
by mtrasp (Acolyte) on Feb 12, 2010 at 18:17 UTC | |
by TGI (Parson) on Feb 18, 2010 at 22:59 UTC |