in reply to Re^5: Parsing Large XML
in thread Parsing Large XML
marto-
I apologize for being lazy with my posting and not thoroughly reviewing my code before putting it on here. I realize also that I was not very clear with my question. I know how to use the open function, but don't know how I would use it here. If my code looks like this:
foreach (@input2) { open (STDOUT, ">$outputfile"); print $_ if m#$criterion#; }
Then the output file will only contain the matched result of the final iteration of the foreach loop. My question, then, is where in the code I could place the open function so that the result of every iteration is printed in the output file.
Sorry to keep bothering you with this, and I will not ask any more questions regarding this code
Thanks, shravnk
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Parsing Large XML
by marto (Cardinal) on Jul 07, 2010 at 20:37 UTC |