http://qs321.pair.com?node_id=1096054

solanum has asked for the wisdom of the Perl Monks concerning the following question:

Hello all, am a novice to perl programming and need some (a lot?) of assistance. Scenario is as follows. I have about 1000 DBF files that need to be converted to CSV files. I understand that I can use dbf_dump to accomplish this, however, I am having issues with the coding. I have installed the xbase component and have tested it on a couple of files and that works like a charm. I need help with the coding when it comes to arrays. she here goes the code I do have *please be gentle with the remarks :) *

#!/usr/bin/perl -w opendir(DIR, "."); @files = grep(/\.dbf$/,readdir(DIR)); closedir(DIR); foreach $file (@files) { dbf_dump --fs "," "$file" > $_.csv; }

I get the following error when the script gets checked bareword found where operator expected, near "--fs" Help!