XP is just a number | |
PerlMonks |
Re: Processing CSV Fileby Athanasius (Archbishop) |
on Oct 03, 2012 at 06:11 UTC ( [id://996984]=note: print w/replies, xml ) | 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: (1) “data.csv”
(2) “rtr-template.txt”
Then I invoked your original script as:
And the result was two output files: (a) “fred.txt“
(b) “wilma.txt”
— 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
In Section
Seekers of Perl Wisdom
|
|