|Syntactic Confectionery Delight|
Re: Processing CSV Fileby Athanasius (Chancellor)
|on Oct 03, 2012 at 06:11 UTC||Need Help??|
Hello Perl3r, and welcome to the Monastery!
Update 1: Sorry, I didn’t see that the name of the output file is changing on each pass of the outer loop. :-(
It is also good practice to begin your scripts with
and to declare lexical variables using my.
Hope that helps,
Update 2: I created two files:
Then I invoked your original script as:
And the result was two output files:
— which is exactly as expected. So, I cannot reproduce the problem you are seeing. Are you sure you are running the code as described?
Athanasius <°(((>< contra mundum